(()=>{var s={"./src/app/ArticleHeader.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>n});class n{constructor(e){e&&(e.split(",").forEach(e=>{var t,s;-1!==e.indexOf("=")?([t,s]=e.split("="),this[this.trim(t)]=this.trim(s)):this[this.trim(e)]=!0}),this.abstract=parseInt(this.abstract,10))}trim(e){return e.replace(/^\s+|\s+$/g,"")}}},"./src/app/ArticleInjector.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>n});class n{constructor(){this.articleIdPromise=new Promise(e=>{this.articleIdCb=e})}setArticleId(e){this.articleIdCb(e)}async getArticleId(){return this.articleIdPromise}}},"./src/app/DT.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>r});var n=s("./src/app/Request.js"),o=s("./src/app/Sentry.js");class r{constructor({gdpr:e,dtConfig:t,eventLogger:s,queryParams:n,tag:o,websiteProperties:r,timeLogger:i,isMainInstance:a}){this.isMainInstance=a,this.dtConfig=t,this.switches={},this.eventLogger=s,this.queryParams=n,this.res={},this.tag=o,this._gdpr=e,this._dtAdded=!1,this._websiteProperties=r,this.timeLogger=i,this._detectionStartedLhk=!1,this._detectionStartedDmd=!1,this.callbackAfterLhk=null,this.callbackAfterLiveRamp=null,this.dmdPostMessageEventListener=null,this.iframeEl=null,this.detectionCanceled=!1}get detectionStarted(){return this._detectionStartedLhk&&this._detectionStartedDmd||this.detectionCanceled}async addDt(){if((0,o.setTag)("npiSource","none"),this._dtAdded)return!1;var e=await this._websiteProperties.get();if(this.switches=e.switches,this.isMainInstance&&(this._gdpr.switches=this.switches,(0,o.setTag)("isGdpr",this._gdpr.gdpr),(0,o.setTag)("isAcs",this._gdpr.isAcs)),!this.dtConfig||this.switches.gdpr||!this.switches.isUS||!this._gdpr.prConsent)return!1;var t=!!this.switches.swoop&&this.switches.swoop.cbOnly;return this.switches.dt||t?(this.dtConfig.lhk&&this._makeLhkReq(e.hash_id),this.dtConfig.dmd&&setTimeout(()=>{this._addDmdIframe()},5e3),this._dtAdded=!0):!(this.detectionCanceled=!0)}_addDmdIframe(){(0,o.setTag)("npiSource","dmd");const e=document.createElement("iframe");if(e.setAttribute("style","display:none!important"),"function"!=typeof e.getAttribute)return!1;var t=Date.now(),t=`?client-origin=${window.location.origin}×tamp=`+t;return this.dtConfig.dmd.permittedOrigin=""+this.dtConfig.dmd.origin,e.src=""+this.dtConfig.dmd.permittedOrigin+this.dtConfig.dmd.path+t,document.body.appendChild(e),this.iframeEl=e,this.dmdPostMessageEventListener=e=>this.dmdPostMessageHandler(e),window.addEventListener("message",this.dmdPostMessageEventListener,!1),!0}_makeLhkReq(e){(0,o.setTag)("npiSource","lhk"),(0,o.setTag)("npiSourceReceivedResponse",!1),(0,o.addBreadcrumb)({category:"dt",message:"Requesting npi from LHK",level:"info"}),(new n.default).get(this.dtConfig.lhk.api).query({test:"true"}).set("X-Session-Id",e).withCredentials().end((e,t)=>{e||t.json().then(e=>{(0,o.addBreadcrumb)({category:"dt",message:"Received response for npi from LHK",level:"info",data:e}),(0,o.setTag)("npiSourceReceivedResponse",!0),this._detectionStartedLhk=!0,this.eventLogger.log({},{lhk:e,switches:this.switches}),"function"==typeof this.callbackAfterLhk&&this.callbackAfterLhk(e)})})}requestIdentificationLink(){var e=this.dtConfig.liveRamp.api+"?pid=7";(new n.default).get(e).withCredentials().end((e,t)=>{e?this.callbackAfterLiveRamp(""):t.json().then(e=>{var t=e["idl"];this.callbackAfterLiveRamp(t),this.eventLogger.log({},{liveRamp:e,switches:this.switches})})})}dmdPostMessageHandler(e){e.origin===this.dtConfig.dmd.permittedOrigin&&(this._detectionStartedDmd=!0,this.res=e.data,this.timeLogger.log("dt"),this.eventLogger.dmdObj=this.dmdObj(),this.timeLogger.times.recos&&this.eventLogger.log({},{dmd:this.dmdObj(),switches:this.switches}))}dmdObj(){if(!this.dtConfig||!this.dtConfig.dmd||!this.switches.dt)return!1;const t={url:document.location.href,title:document.title,article:this.queryParams(),referrer:document.referrer,time:new Date,recos:[],iframe:{data:this.res,iframeResponse:this.timeLogger.times.dt,recosVisible:this.timeLogger.times.recos}};var s=document.getElementsByClassName(this.tag+"-widget-list-item__link");for(let e=0;e{"use strict";s.r(t),s.d(t,{default:()=>o});var n=s("./src/app/Request.js");class o{constructor(e){this.tag=e.tag,this.version=e.version,this.relevancyUrl=e.relevancyUrl,this.eventsEndpoint="/events",this.swoopObj={},this.dmdObj={},this.switches={},this.stack=[],this.concurrent=0,this._stackInterval=0,this._stackInProgress=!1,this.hasAdBlock=null}log(e,t={},s){this.stack.push({events:e,misc:t,cb:s}),this._stackInterval||(this._log(),this._stackInterval=setInterval(()=>{!this._stackInProgress&&this.stack.length&&this._log()},200))}_log(){this._stackInProgress=!0;const{events:e,misc:t,cb:s}=this.stack.pop();return t.switches=t.switches||this.switches||{},this.concurrent+=1,(new n.default).set(this.tag+"-widget-version",this.version).withCredentials().post(this.relevancyUrl+this.eventsEndpoint).send({events:e,misc:t}).end((e,t)=>{--this.concurrent,this._stackInProgress=!1,"function"==typeof s&&s(t)})}}},"./src/app/Events.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>n});class n{constructor({config:e,eventLogger:t,timeLogger:s}){this.tag=e.tag,this.version=e.version,this.testID=null,this.journalId=null,this.articleId=null,this.contentCategory=null,this.elements={},this.eventsStoreKey=this.tag+"SentEvents",this.attributes={articleId:`data-${this.tag}-id`,journalId:`data-${this.tag}-journal-id`,contentCategory:`data-${this.tag}-content-category`,sponsored:`data-${this.tag}-sponsored`,campaignId:`data-${this.tag}-campaign-id`,ct:`data-${this.tag}-ct`,flags:`data-${this.tag}-flags`,modelType:`data-${this.tag}-model-type`},this.selectors={organic:`a[data-${this.tag}-sponsored="false"]`,sponsored:`a[data-${this.tag}-sponsored="true"]`},this._eventLogger=t,this.timeLogger=s,this.anonymId=e.anonymId,this.disableEvents=!!this.getHealthNetworkMonitorCookie(),this.isTmd=!0,this.checkIfTmd()}checkIfTmd(){try{const e=Array.from(document.querySelectorAll("script"));this.isTmd=Boolean(e.find(e=>/js\.trendmd\.com\/trendmd\.min\.js/.test(e.src)))}catch(e){this.isTmd=!1}}set switches(e){this._eventLogger.switches=e}impression(e,t){if(!this.disableEvents){const i={},a=[],l=[];e.forEach(t=>{const s=this.nodes("organic",t);for(let e=0;e{var[e,t]=e.split("=");return{name:e,value:t}});return e.find(e=>"TrendMD_Health_Network_Monitor"===e.name)}}},"./src/app/ExternalEvents.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>n});class n{constructor({config:e,eventLogger:t,websiteProperties:s,timeLogger:n}){this.version=e.version,this.testID=null,this.journalId=null,this.articleId=null,this.contentCategory=null,this.elements={},this.eventsStoreKey="externalSentEvents",this.websiteProperties=s,this.timeLogger=n,this.website={},this.attributes={articleId:"data-external-id"},this._eventLogger=t,this.anonymId=e.anonymId,this.isTmd=!0,this.checkIfTmd()}checkIfTmd(){try{const e=Array.from(document.querySelectorAll("script"));this.isTmd=Boolean(e.find(e=>/js\.trendmd\.com\/trendmd\.min\.js/.test(e.src)))}catch(e){this.isTmd=!1}}async impression(e,t){if(!this.disableEvents){const i={},a=[];this.website=await this.websiteProperties.get(),e.forEach(t=>{const s=this.nodes(t);var{placementId:n,dataSourceId:o}=this.getExternalSourceData(t);for(let e=0;ee.widgetId===t)[0].externalDataSourceWebsite.id;return{placementId:`${e}_${this.journalId}_`+t,dataSourceId:e}}}},"./src/app/ExternalRecommendations.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>n});var o=s("./src/app/Request.js");class n{constructor({config:e,options:t,websiteProperties:s,gdpr:n}){this.apiUrl=e.apiUrl,this.version=e.version,this.options=t,this.websiteProperties=s,this.website={},this.externalRequestPromises={},this.isExecuted=!1,this.gdpr=n}async run(){if(!this.isExecuted){this.isExecuted=!0,this.website=await this.websiteProperties.get();const{widgets:e,id:o}=this.website,t=e.filter(e=>"external"===e.widgetMode);t.forEach(n=>{this.externalRequestPromises[n.widgetId]=new Promise((e,t)=>{var s=`${n.externalDataSourceWebsite.id}_${o}_`+n.widgetId;this._prepareExternalArticlesRequest(n,s,e,t)})})}}async getExternal(e){return this.externalRequestPromises[e]}_prepareExternalArticlesRequest(e,t,s,n){t={widgetId:e.widgetId,placementId:t,isGdpr:this.gdpr.gdpr,numberOfRecommendations:e.numberOfRecommendations,titleSize:e.titleSize,fontSize:e.fontSize,titleWording:e.titleWording,columns:e.columns};this._fetchExternalArticles({endpoint:"/external/"+this.website.id,params:t},(e,t)=>{e&&e.timeout?s({timeout:!0}):403===t.status||404===t.status?n({status:t.status,error:e}):400<=t.status||s(t)})}_fetchExternalArticles({endpoint:e,params:t},s){var n=this.apiUrl.external;return(new o.default).set("external-widget-version",this.version).timeout(3e4).withCredentials().query(t).get(n+e).end(s)}}},"./src/app/ExternalWidget.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>n});var d=s("./src/app/WidgetPosition.js");class n{constructor({config:e,options:t,events:s,recommendations:n,instanceOptions:o,integrations:r,gdpr:i,articleInjector:a,timeLogger:l,isMainInstance:c}){this.widgetId=o.widgetId,this.recommendations=n,this.events=s,this.integrations=r,this.articleInjector=a,this.position=new d.default({config:e,options:t,eventLogger:this.events._eventLogger,instanceOptions:o,gdpr:i,timeLogger:l,isMainInstance:c})}async init(){return this.position.define(),this.recommendations.getExternal(this.widgetId).then(async({headers:e,text:t,type:s,timeout:n})=>{if(n)return Promise.reject(new Error("timeout"));this.events.testID=e["x-testid"],this.events.articleId=await this.articleInjector.getArticleId();try{await this.position.isDefinedPromise}catch(e){return console.error("WidgetPosition error: "+e),Promise.reject()}return this.position.setFirstResponse({type:s,text:t}),this.position.setSecondResponse({type:s,text:t}),this.position.onClick(e=>this.events.click(e,this.widgetId)),this.events.elements[this.widgetId]=this.position.widgetContainer,Promise.resolve(this.widgetId)}).catch(e=>{var t;return e?(t=e["error"],Promise.reject(t)):Promise.reject(e)})}}},"./src/app/ExternalWidgetInstances.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>n});var r=s("./src/app/ExternalWidget.js");class n{constructor({config:e,options:t,websiteProperties:s,events:n,recommendations:o,integrations:r,gdpr:i,articleInjector:a,timeLogger:l,isMainInstance:c}){this.isMainInstance=c,this.config=e,this.options=t,this.websiteProperties=s,this.events=n,this.recommendations=o,this.integrations=r,this.gdpr=i,this.articleInjector=a,this.timeLogger=l,this.instancesOptions=[],this.instances=[]}async init(){this.recommendations.isExecuted||await this.recommendations.run();let s;try{s=await this.websiteProperties.get()}catch(e){return void console.error("WebsiteProperties error: "+e)}this.events.journalId=s.id,this.events.contentCategory=s.category,this.events.switches=s.switches||{},this.isMainInstance&&(this.gdpr.journalId=s.id,this.gdpr.switches=s.switches||{});const e=s.widgets.filter(e=>"external"===e.widgetMode),t=e.map(e=>{e=Object.assign({},e,{websiteId:s.id,switches:s.switches,hideWidget:s.hideExtraWidgets});const t=new r.default({config:this.config,options:this.options,events:this.events,recommendations:this.recommendations,instanceOptions:e,integrations:this.integrations,gdpr:this.gdpr,articleInjector:this.articleInjector,timeLogger:this.timeLogger,isMainInstance:this.isMainInstance});return this.instances.push(t),this.instancesOptions.push(e),t.init()}),n=await Promise.all(t.map(e=>e.catch(()=>!1))).then(e=>e.filter(e=>!1!==e));var o=e.filter(e=>n.includes(e.widgetId)).reduce((e,t)=>e+t.numberOfRecommendations,0);this.isMainInstance&&this.gdpr.widgetIsLoaded&&this.gdpr.addGaTrackingCode(),this.events.impression(n,o)}}},"./src/app/GDPR.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>n});class n{constructor({eventLogger:e,tag:t}){this.dns=null,this.loggedIn=!1,this.prConsent=null,this.trConsent=null,this.gaConsent=null,this.gaClientId=null,this.gaConsentInGdpr=null,this.newClientId=!1,this.gdpr=!0,this.isUS=!1,this.isAcs=!1,this.gaCode="G-G5TCNFJCYP",this.tag=t,this.eventLogger=e,this.sessionCookieName=this.tag+"-disable-gdpr-ga-popup",this.flag="cf_widget_j",this.journalId=null,this.widgetIsLoaded=!1}static _gdprInstance=null;static getInstance(e,t=!1){return null!==n._gdprInstance&&!t||(n._gdprInstance=new n(e)),n._gdprInstance}set switches(e){const t=Object.assign({},e);t.mainCookie=t.mainCookie||{},null!==t.isUS&&(this.isUS=t.isUS),null!==t.gdpr&&(this.gdpr=t.gdpr),t.gaCode&&(this.gaCode=t.gaCode),null!==t.isAcs&&(this.isAcs=t.isAcs),this.loggedIn=t.loggedIn,this.gaConsent=!this.gdpr&&!this.isAcs||this.loggedIn,this.prConsent=!0,this.trConsent=!0,this.dns=!1,t.mainCookie.ga&&t.mainCookie.ga.consent===!!t.mainCookie.ga.consent&&(this.gaConsent=t.mainCookie.ga.consent,this.gaClientId=t.mainCookie.ga.clientId),this.loggedIn?this.prConsent=t.mainCookie.pr:t.mainCookie.pr&&t.mainCookie.pr.consent===!!t.mainCookie.pr.consent&&(this.prConsent=t.mainCookie.pr.consent),t.mainCookie.dns===!!t.mainCookie.dns&&(this.dns=t.mainCookie.dns),t.mainCookie.tr===!!t.mainCookie.tr&&(this.trConsent=t.mainCookie.tr),t.mainCookie&&t.mainCookie.gdprGaConsent&&(this.gaConsentInGdpr=!0),void 0!==t.mainCookieWasCleared&&!0===t.mainCookieWasCleared&&this._clearSessionCookie()}addGaTrackingCode(e,t,s){this.isAcs||(e&&(this.gaCode=e),t&&(this.flag=t),this._addGaTrackingCode(()=>{this.loggedIn?this.newClientId?this._registerGaConsent(!0,e=>{e||this._gaTrackPageView()}):this.gaConsent&&this._gaTrackPageView():this.gdpr&&!this.gaConsent?navigator.cookieEnabled&&-1!==document.cookie.indexOf(this.sessionCookieName)||("function"==typeof s?s():this._askForGaConsent()):this.newClientId?this._registerGaConsent(!0,e=>{e||this._gaTrackPageView()}):this._gaTrackPageView()}))}_addGaTrackingCode(t){const e=document.createElement("script");function s(){dataLayer.push(arguments)}e.onload=t,e.src="https://www.googletagmanager.com/gtag/js?id="+this.gaCode,document.head.appendChild(e),window.dataLayer=window.dataLayer||[],(window.gtag=s)("js",new Date),s("consent","default",{ad_storage:"denied",analytics_storage:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"denied"}),s("config",this.gaCode,{send_page_view:!1}),this.gaClientId?s("config",this.gaCode,{client_storage:"none",groups:"tmdWidget",client_id:this.gaClientId}):s("config",this.gaCode,{client_storage:"none",groups:"tmdWidget"}),s("config",this.gaCode,{anonymize_ip:!0}),s("get",this.gaCode,"client_id",e=>{this.gaClientId||(this.gaClientId=e,this.newClientId=!0),t()})}_gaTrackPageView(){gtag("consent","update",{analytics_storage:"granted",functionality_storage:"granted",personalization_storage:"granted"})}_askForGaConsent(){var e=document.getElementsByClassName(this.tag+"-widget-cookie-notification");if(e.length)for(var t of e){var s=n.findAncestor(t,`.${this.tag}-widget-container`);if("none"!==s.style.display){this._hideProgress(s),t.setAttribute("style","display: block!important");break}}}static findAncestor(e,t){for(;(e=e.parentElement)&&!(e.matches||e.matchesSelector).call(e,t););return e}_registerGaConsent(t){const e=()=>{let e=this["flag"];"cf_widget"===this.flag.substring(0,9)&&(e=""+this.flag+this.journalId),this.eventLogger.log({},{gdprGaConsent:{gdpr:this.gdpr,gaClientId:this.gaClientId,gaCode:this.gaCode,gaConsent:this.gaConsent,gaConsentInGdpr:this.gaConsentInGdpr,flag:e}},e=>{e&&e.ok?(this.gaConsent&&this._gaTrackPageView(),"function"==typeof t&&t(!1),this.gdpr&&(document.cookie=this.sessionCookieName+"=1;path=/")):e&&e.ok||"function"==typeof t&&t({error:"other"})})};if(!this.gdpr&&0{0===this.eventLogger.concurrent&&(e(),clearInterval(s))},500)}else e()}_handleGaConsentError(){this._hideConsentFooter(),clearTimeout(this._handleGaConsentErrorTimeout),this._handleGaConsentErrorTimeout=setTimeout(()=>{this._askForGaConsent()},500)}_hideConsentFooter(){const t=document.getElementsByClassName(this.tag+"-widget-cookie-notification");if(t)for(let e=0;ee.style.display="none");const e=document.querySelectorAll(`.${this.tag}-widget-cookie-notification span`)[1];clearInterval(this._showProgressInterval),this._showProgressDots=1,this._showProgressInterval=setInterval(()=>{let t="Saving";for(let e=0;ee.style.display="inline-block");const t=e.querySelectorAll(`.${this.tag}-widget-cookie-notification span`)[1];clearInterval(this._showProgressInterval),t.innerHTML=""}_clearSessionCookie(){document.cookie=this.sessionCookieName+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"}setGaConsent(e,t){let s=t;return"function"!=typeof s&&(s=e=>{e?this._handleGaConsentError():this._hideConsentFooter()}),navigator.cookieEnabled?(this.gaConsent=!0===e,this._showProgress(),this._registerGaConsent(s)):s({error:"cookie"})}setPrConsent(e,t,s){return navigator.cookieEnabled?(this.prConsent=!0===e,this.trConsent=!0===t,this.eventLogger.log({},{gdprPrConsent:{gdpr:this.gdpr,prConsent:this.prConsent,trConsent:this.trConsent}},e=>{"function"==typeof s&&(e.ok?s(!1):e.ok||s({error:"other"}))})):s({error:"cookie"})}setDns(e,t){return navigator.cookieEnabled?(this.dns=!0===e,this.eventLogger.log({},{dns:this.dns},e=>{"function"==typeof t&&(e.ok?t(!1):e.ok||t({error:"other"}))})):t({error:"cookie"})}}},"./src/app/Initializer.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>f});var n=s("./src/app/ArticleInjector.js"),o=s("./src/app/DT.js"),r=s("./src/app/EventLogger.js"),i=s("./src/app/Events.js"),a=s("./src/app/ExternalEvents.js"),l=s("./src/app/ExternalRecommendations.js"),c=s("./src/app/ExternalWidgetInstances.js"),d=s("./src/app/GDPR.js"),u=s("./src/app/Integrations.js"),h=s("./src/app/Recommendations.js"),m=s("./src/app/TimeLogger.js"),p=s("./src/app/WebsiteProperties.js"),g=s("./src/app/WidgetInstances.js"),j=s("./src/app/Sentry.js");class f{constructor(e,t=!0){this.APIconfig=e,this.tag=e.tag,this.version=e.version,window.trendmdGlobalState=window.trendmdGlobalState||{},this.timeLogger=new m.default,this.displayWidgetOnDemand=null,this.dt=null,this.eventLogger=null,this.events=null,this.isMainInstance=t,this.gdprInstance=null,this.integrations=null,this.recommendations=null,this.websiteProperties=null,this.widgetInstances=null,this.widgetOptions=null,this.initCompleted=!1,this.APIconfig.anonymId=this.uuidv4(),this.externalRecommendations=null,this.externalWidgetInstances=null,this.hasExternalWidget=!1,this.externalEvents=null,this.articleInjector=null,this._getOptions(),this.widgetOptions?this.register():this.initCompleted=!0}validateWidgetOptions(e){return!(!e||"[object Object]"!==Object.prototype.toString.call(e))||((0,j.captureMessage)("Widget load has failed, options passed to data-${this.tag}config|TrendMD.register()|displayWidget() are invalid"),console.error(`Widget load has failed, options passed to data-${this.tag}config|TrendMD.register()|displayWidget() are invalid`),!1)}populateWidgetOptions(e=null){this.validateWidgetOptions(e)&&(this.displayWidgetOnDemand=e.displayWidgetOnDemand||null,this.widgetOptions=e,(0,j.addBreadcrumb)({category:"initializer",message:"Populating options for widget",level:"info",data:e}))}async cleanUpThePage(){if(this.widgetOptions||this.websiteProperties){const t=[];if(this.widgetOptions&&this.widgetOptions.element&&t.push(this.widgetOptions.element),this.websiteProperties){const n=(await this.websiteProperties.get())["widgets"];n.forEach(e=>{e.placementSelector&&t.push(e.placementSelector)})}var e=t.join();const s=document.querySelectorAll(e);s.forEach(e=>{const t=e;t.innerText=""})}}async register(e){try{e&&this.populateWidgetOptions(e),this.widgetOptions&&(this.timeLogger.init(),this.eventLogger||(this.eventLogger=new r.default(this.APIconfig)),this.events||(this.events=new i.default({config:this.APIconfig,eventLogger:this.eventLogger,timeLogger:this.timeLogger})),this.displayWidgetOnDemand||await this.displayWidget())}catch(e){throw(0,j.captureException)(e),e}}async displayWidget(e){if(!(!this.displayWidgetOnDemand&&this.websiteProperties&&this.recommendations&&this.gdprInstance&&this.dt&&this.widgetInstances)){(0,j.addBreadcrumb)({category:"initializer",message:"Initializing properties",level:"info"}),(0,j.commitProfiling)(),e&&(await this.cleanUpThePage(),this.populateWidgetOptions({...this.widgetOptions,doi:e.doi||null,issn:e.issn||null,url:e.url||null,journal_id:e.journal_id||null,title:e.title||null})),(0,j.addBreadcrumb)({category:"initializer",message:"Initializing website properties",level:"info"}),this.websiteProperties=new p.default({apiUrl:this.APIconfig.apiUrl,options:this.widgetOptions,version:this.version,tag:this.tag,timeLogger:this.timeLogger}),(0,j.addBreadcrumb)({category:"initializer",message:"Initializing Recommendations",level:"info"}),this.recommendations=new h.default({config:this.APIconfig,websiteProperties:this.websiteProperties,options:this.widgetOptions}),(0,j.addBreadcrumb)({category:"initializer",message:"Initializing GDPR instance",level:"info"}),this.gdprInstance=d.default.getInstance({tag:this.tag,eventLogger:this.eventLogger},this.isMainInstance),(0,j.addBreadcrumb)({category:"initializer",message:"Initializing DT",level:"info"}),this.dt=new o.default({dtConfig:this.APIconfig.dtConfig,eventLogger:this.eventLogger,queryParams:()=>this.recommendations.queryParams(),tag:this.tag,gdpr:this.gdprInstance,websiteProperties:this.websiteProperties,timeLogger:this.timeLogger,isMainInstance:this.isMainInstance}),(0,j.addBreadcrumb)({category:"initializer",message:"Initializing Integrations",level:"info"}),this.integrations=new u.default({config:this.APIconfig,eventLogger:this.eventLogger,websiteProperties:this.websiteProperties,dt:this.dt}),(0,j.addBreadcrumb)({category:"initializer",message:"Getting widgets",level:"info"});e=await this.websiteProperties.get();if(e){const{id:t,widgets:s}=e;(0,j.setTag)("websiteId",t),this.hasExternalWidget=s.some(e=>"external"===e.widgetMode),this.articleInjector=new n.default,(0,j.setTag)("hasExternalWidget",!1),this.hasExternalWidget&&((0,j.setTag)("hasExternalWidget",!0),this.externalRecommendations=new l.default({config:this.APIconfig,websiteProperties:this.websiteProperties,options:this.widgetOptions,gdpr:this.gdprInstance}),this.externalEvents=new a.default({config:this.APIconfig,eventLogger:this.eventLogger,websiteProperties:this.websiteProperties,timeLogger:this.timeLogger}),this.externalWidgetInstances=new c.default({config:this.APIconfig,events:this.externalEvents,websiteProperties:this.websiteProperties,options:this.widgetOptions,recommendations:this.externalRecommendations,integrations:this.integrations,gdpr:this.gdprInstance,articleInjector:this.articleInjector,timeLogger:this.timeLogger,isMainInstance:this.isMainInstance})),(0,j.addBreadcrumb)({category:"initializer",message:"Initializing WidgetInstances",level:"info"}),this.widgetInstances=new g.default({config:this.APIconfig,events:this.events,websiteProperties:this.websiteProperties,options:this.widgetOptions,recommendations:this.recommendations,integrations:this.integrations,gdpr:this.gdprInstance,articleInjector:this.articleInjector,timeLogger:this.timeLogger,isMainInstance:this.isMainInstance}),(0,j.addBreadcrumb)({category:"initializer",message:"Starting dt",level:"info"}),await this.dt.addDt(),(0,j.addBreadcrumb)({category:"initializer",message:"Running integrations",level:"info"}),await this.integrations.run(),this.integrations.swoopCbOnly||this.integrations.swoopPassthrough?(0,j.addBreadcrumb)({category:"initializer",message:"Detected only swoop cb or swoop passthrough",level:"info",data:{swoopCbOnly:this.integrations.swoopCbOnly,swoopPassthrough:this.integrations.swoopPassthrough}}):((0,j.addBreadcrumb)({category:"initializer",message:"Running recommendations",level:"info"}),await this.recommendations.run(),(0,j.addBreadcrumb)({category:"initializer",message:"Initializing widgets",level:"info"}),this.widgetInstances.init().then(()=>{this.initCompleted=!0}),this.hasExternalWidget&&(await this.externalRecommendations.run(),this.externalWidgetInstances.init()))}else this.initCompleted=!0}}gdpr(t){if(this.gdprInstance)"function"==typeof t&&t();else{this.timeLogger.init();const e=new p.default({apiUrl:this.APIconfig.apiUrl,options:{journal_id:1},version:this.version,tag:this.tag,timeLogger:this.timeLogger});this.eventLogger||(this.eventLogger=new r.default(this.APIconfig)),this.gdprInstance||(this.gdprInstance=d.default.getInstance({tag:this.tag,eventLogger:this.eventLogger},this.isMainInstance)),Promise.resolve(e.get()).then(e=>{this.gdprInstance.journalId=e.id,this.gdprInstance.switches=e.switches,this.eventLogger.switches=e.switches,"function"==typeof t&&t()})}return this.gdprInstance}_getURLParam(e){const t=new RegExp(`[?|&]${e}=([^&;]+?)(&|#|;|$)`),s=t.exec(window.location.search);let n=!1;return s&&s.length&&(n=s[1].replace(/\+/g,"%20"),n=decodeURIComponent(s[1])),n}ampHelper(){window.parent.postMessage({sentinel:"amp",type:"embed-size",height:document.body.scrollHeight},"*");const t=document.getElementsByClassName(this.tag+"-widget-list-item__link");for(let e=0;e{var t=document.getElementsByTagName("script");let s="";for(let e=0;e{"use strict";s.r(t),s.d(t,{default:()=>a});var n=s("./src/app/Initializer.js"),t=s("../../node_modules/lodash.isempty/index.js"),o=s.n(t),r=s("./src/polyfill/navigation.js"),i=s("./src/app/Sentry.js");class a{constructor(e){(0,i.addBreadcrumb)({category:"init",message:"Initializing widget",level:"info"}),this.config=e,this.isMainInstanceCreated=!1,this.infiniteScrollWebsiteArticleUrls=[],this.infiniteScrollWebsiteArticleNumber=2,this.registerDefault(),window.navigation||(window.navigation=new r.default),this.urlChangeEventListener=this.registerDefault.bind(this),this.config.infiniteScrollWebsiteIds.includes(+this.websiteId)&&(e=window.location.href,this.infiniteScrollWebsiteArticleUrls.push(e),this.urlChangeEventListener=()=>{this.isNewArticle=this.checkIfNewArticle(),this.isNewArticle&&(this.modifyWidgetContainerDivId(this.infiniteScrollWebsiteArticleNumber),this.registerFor({...this.defaultInstance.widgetOptions,elements:[this.defaultInstance.widgetOptions.element+"-"+this.infiniteScrollWebsiteArticleNumber],title:this.defaultInstance.recommendations.extractor.title,url:this.currentUrl}),this.infiniteScrollWebsiteArticleNumber+=1)}),window.navigation.addEventListener("navigatesuccess",this.urlChangeEventListener)}checkIfNewArticle(){var e=window.location.href;return!this.infiniteScrollWebsiteArticleUrls.includes(e)&&(this.infiniteScrollWebsiteArticleUrls.push(e),this.currentUrl=e,!0)}modifyWidgetContainerDivId(e){const t=document.querySelectorAll(this.defaultInstance.widgetOptions.element);var s;0{"use strict";s.r(t),s.d(t,{default:()=>r});var o=s("./src/app/Sentry.js"),n=s("./src/app/Request.js");class r{constructor({config:e,websiteProperties:t,eventLogger:s,dt:n}){this.apiUrl=e.apiUrl,this.swoopScriptUrl=e.swoopScriptUrl,this.swoopPassthroughScriptUrl=e.swoopPassthroughScriptUrl,this.tag=e.tag,this.version=e.version,this.integrationsEndpoint="/integrations",this._websiteProperties=t,this.swoopCbOnly=!1,this.swoopPassthrough=!1,this.dt=n,this._loopInitialized=!1,this._articleId=null,this._eventLogger=s,this._swoopInserted=!1,this._swoopInsertedScriptEl=null,this._swoopNpi=-2,this._swoopWebsiteId=null,this._swoopCbCalled=!1,this._idl=null,this.idlPromise=new Promise(e=>{this.dt.callbackAfterLiveRamp=e})}setArticleId(e){this._articleId=e}async run(){this.website=await this._websiteProperties.get(),this.swoopCbOnly=this.website.switches.swoop.cbOnly,this.swoopPassthrough=this.website.switches.swoop.passthrough,(0,o.setTags)({swoopAppend:!1,swoopCb:!1,npiDetected:!1,integrations:!1}),this.website.switches.swoop?this.website.switches.isUS?(-2===this._swoopNpi&&(this._swoopNpi=this.website.switches.swoop.swn||-1),this._swoopWebsiteId=this.website.switches.swoop.swi,this.swoopCbOnly||this._swoopWebsiteId?((0,o.setTag)("integrations",!0),-1!==this._swoopNpi?this._swoopCbOrAppend():this._loop()):(0,o.addBreadcrumb)({category:"integrations",message:"Integrations skipped. Non swoop cb and non swoop website",level:"info"})):(0,o.addBreadcrumb)({category:"integrations",message:"Integrations skipped. Non US",level:"info"}):(0,o.addBreadcrumb)({category:"integrations",message:"Integrations skipped. Non swoop",level:"info"})}async _liveRampIntegration(){let e=this.website.switches.mainCookie["idl"];return""!==(e=e&&e.length?e:await this.idlPromise)&&(this._idl=e,this._swoopCbOrAppend(),!0)}_swoopCbOrAppend(){this.swoopCbOnly?this._swoopCb():this._swoopAppend()}_getIdlOrNpi(){return this._idl&&""!==this._idl?this._idl:[-2,-1,0].includes(this._swoopNpi)?null:this._swoopNpi}_loop(){if(!this._loopInitialized){let n=0;(0,o.addBreadcrumb)({category:"integrations",message:"Loop in progress",level:"info",data:{swoopNpi:this._swoopNpi}}),this._loopInitialized=setInterval(()=>{n++,this._integrationsApi((e,t)=>{e||([-2,-1,0].includes(this._swoopNpi)?t.json().then(e=>{var{detected:t,swn:s}=e;t&&!s&&(this._swoopNpi=-1),!t&&this.dt.detectionStarted&&10{"use strict";s.r(t),s.d(t,{default:()=>r});var a=s("./src/app/Sentry.js"),n=s("../../node_modules/url/url.js"),l=s("../../libs/meta-extractor/src/index.js"),o=s("./src/app/Request.js");class r{constructor({config:e,options:t,websiteProperties:s}){this.apiUrl=e.apiUrl,this.tag=e.tag,this.version=e.version,this.options=t,this.websiteProperties=s,this.website={},this.sponsoredRequestPromises={},this.nonSponsoredRequestPromises={},this.isExecuted=!1}async run(){if(!this.isExecuted){this.isExecuted=!0,this.website=await this.websiteProperties.get();const e=this.website["widgets"];this.missingEndpoint=`/journals/${this.website.id}/missing`,this.articlesEndpoint=`/journals/${this.website.id}/articles`;this.extractor=new l.MetaExtractor(document,{...this.website,tags:["doi","custom_id","issn","isbn","pubmed_id","title","authors","abstract","publication_date","online_publication_date","accepted_date","reviewed_date"],sources:["HighWire","DublinCore","DCTerms","Prism","BEPress","EPrints","WolterKluwer","Selectors","OpenGraph","TandFonline","DCSext","OUP"]});const o=this.queryParams();if(this.isMissing(o))this.missing();else{this.createExecuted=!1,this.updateExecuted=!1;const r={"Always load":0,NPI:0,IP:0,"NPI or IP":0,"Targeted countries":0,"NPI or Custom tags":0};let n=0;const i=e.filter(e=>"external"!==e.widgetMode);(0,a.addBreadcrumb)({category:"recommendations",message:"Running recommendations",level:"info",data:{websiteId:this.website.id,numberOfWidgets:i.length}}),i.forEach(s=>{this.sponsoredRequestPromises[s.widgetId]=new Promise((e,t)=>{this._prepareSimilarArticlesRequest("sponsored",o,s,r[s.conditionalLoading],i.length,e,t)}),this.nonSponsoredRequestPromises[s.widgetId]=new Promise((e,t)=>{this._prepareSimilarArticlesRequest("nonsponsored",o,s,n,i.length,e,t)}),(0,a.setTag)("recommendationsType",s.recommendationsType),(0,a.addBreadcrumb)({category:"recommendations",message:"Recommendations info",level:"info",data:{websiteId:this.website.id,widgetId:s.id,recommendationsType:s.recommendationsType,numberOfRecommendations:s.numberOfRecommendations,sponsoredLimit:s.sponsoredLimit}}),"both"===s.recommendationsType?(r[s.conditionalLoading]+=s.sponsoredLimit,n+=s.numberOfRecommendations-s.sponsoredLimit):"sponsored"===s.recommendationsType?r[s.conditionalLoading]+=s.numberOfRecommendations:n+=s.numberOfRecommendations})}}}async getSponsored(e){return this.sponsoredRequestPromises[e]}async getNonSponsored(e){return this.nonSponsoredRequestPromises[e]}_prepareSimilarArticlesRequest(s,e,t,n,o,r,i){e=Object.assign({},e,{offset:n,boostedRecommendationsLimit:t.boostedRecommendationsLimit,recommendationsType:t.recommendationsType,numberOfRecommendations:t.numberOfRecommendations,sponsoredLimit:t.sponsoredLimit,titleSize:t.titleSize,fontSize:t.fontSize,titleWording:t.titleWording,logoStyle:t.logoStyle,columns:t.columns,conditionalLoading:t.conditionalLoading},"nonsponsored"===s&&{timestamp:this.website.updatedAt},"sponsored"===s&&1{e&&e.timeout?r({timeout:!0}):403===t.status?i({status:t.status,error:e}):404===t.status?(this.createExecuted||(this.createExecuted=!0,this.create()),i({status:t.status,error:e})):400<=t.status||t.text().then(e=>{r({...t,header:Object.fromEntries(t.headers.entries()),text:e,type:s})}).catch(e=>i(e))})}_fetchSimilarArticles({endpoint:e,params:t,type:s},n){s="nonsponsored"===s?this.apiUrl.nonSponsored:this.apiUrl.sponsored;return(new o.default).get(s+e).set(this.tag+"-widget-version",this.version).timeout(3e4).withCredentials().query(t).end(n)}updateArticle(e){var t=this.extractor.abstract?this.extractor.abstract.trim().length:0,{id:e,meta_dated:s,missing_meta:n,abstract:o}=e;e&&s&&(n||o{"url"!==e&&"staging"!==e&&(t[e]=this.checkParam(e,this.options[e]||this.extractor&&this.extractor[e]))}),t}checkParam(e,t){if("publication_year"===e)return 1900<=t&&t<=2100?t:null;if("publication_month"===e)return 1<=t&&t<=12?t:null;if("publicationDates"!==e)return t;{const s={...t};return Object.keys(t).forEach(e=>{(!t[e].year||t[e].year<1900||2100{"use strict";s.r(t),s.d(t,{default:()=>n});var u=s("./src/app/Sentry.js");class n{constructor(e){this.widgetsInfo={},e.forEach(e=>{let t=null,s=null;var n=new Promise(e=>{t=e}),o=new Promise(e=>{s=e});this.widgetsInfo[e.widgetId]={numberOfRecommendations:e.numberOfRecommendations,recommendationsType:e.recommendationsType,sponsoredLimit:e.sponsoredLimit,recommendations:{sponsored:[],nonsponsored:[]},readyPromise:n,onReady:t,loadedPromise:o,onLoaded:s,responsesReceived:0,container:null,conditionalLoading:e.conditionalLoading}}),this.maxWidgetId=e.length-1}async balanceRecommendations(e){const t=this.widgetsInfo[e];var s,n=t.recommendations.sponsored.length,o=t.recommendations.nonsponsored.length;let r=[],i=[];"sponsored"===t.recommendationsType?(d=t.numberOfRecommendations-n,r=await this.getExtraRecommendations(e,"sponsored",d)):i="nonsponsored"===t.recommendationsType?(d=t.numberOfRecommendations-o,await this.getExtraRecommendations(e,"nonsponsored",d)):(d=t.sponsoredLimit-n,s=t.numberOfRecommendations-t.sponsoredLimit-o,s+=d-(r=await this.getExtraRecommendations(e,"sponsored",d)).length,await this.getExtraRecommendations(e,"nonsponsored",s));const a=t.container.querySelectorAll("ol.trendmd-widget-list"),l=document.createDocumentFragment(),c=document.createDocumentFragment();t.recommendations.sponsored.forEach(e=>{l.appendChild(e)}),r.forEach(e=>{l.appendChild(e)}),t.recommendations.nonsponsored.forEach(e=>{c.appendChild(e)}),i.forEach(e=>{c.appendChild(e)}),a.forEach((e,t)=>{e.innerHTML="",0===t&&e.appendChild(c),t===a.length-1&&e.appendChild(l)});var d=n+o;(0,u.setTag)("noOfSponsoredRecommendations",t.recommendations.sponsored.length),(0,u.setTag)("noOfExtraSponsoredRecommendations",r.length),(0,u.setTag)("noOfNonSponsoredRecommendations",t.recommendations.nonsponsored.length),(0,u.setTag)("noOfExtraNonSponsoredRecommendations",i.length),(0,u.setTag)("totalNumberOfRecommendations",t.recommendations.sponsored.length+r.length+t.recommendations.nonsponsored.length+i.length),(0,u.setTag)("trendmdRejects",!1),(0,u.addBreadcrumb)({category:"recommendationsBalancer",message:"Displaying recommendations",level:"info",data:{widgetId:e,numberOfSponsoredRecommendations:t.recommendations.sponsored.length,numberOfExtraSponsoredRecommendations:r.length,numberOfNonSponsoredRecommendations:t.recommendations.nonsponsored.length,numberOfExtraNonSponsoredRecommendations:i.length}}),window.trendmdRejects&&!d&&"Always load"!==t.conditionalLoading&&((0,u.setTag)("trendmdRejects",!0),(0,u.addBreadcrumb)({category:"recommendationsBalancer",message:"Calling trendmdRejects",level:"info"}),window.trendmdRejects()),t.onReady(t.container.innerHTML)}async getExtraRecommendations(e,o,r){if(0===r)return[];var t=async(e,t)=>{if(t>this.maxWidgetId)return[];if(this.widgetsInfo[e].conditionalLoading!==this.widgetsInfo[t].conditionalLoading)return[];await this.widgetsInfo[t].loadedPromise;const s=this.widgetsInfo[t].recommendations[o];let n=[];return 0{"use strict";s.r(t),s.d(t,{default:()=>n});class n{_url;_includeCredentials;_headers=new Headers;_searchParams;_timeout;_body;_method;_handleFetch(s){const e=new URL(this._url),t=(this._searchParams&&(e.search=this._searchParams),new AbortController),n=this._timeout?setTimeout(()=>t.abort(),this._timeout):void 0;return fetch(e.toString(),{method:this._method,headers:this._headers,credentials:this._includeCredentials?"include":void 0,signal:t.signal,body:this._body}).then((e,t)=>{n&&clearTimeout(n),"function"==typeof s&&s(t,e)}).catch(e=>{"function"==typeof s&&s(e)})}withCredentials(){return this._includeCredentials=!0,this}query(n){var e=Object.keys(n||{}).reduce((e,t)=>{var s=n[t];return null!=s&&(e[t]=s),null===s&&(e[t]=""),e},{});return this._searchParams=new URLSearchParams(e),this}timeout(e){return this._timeout=e,this}set(e,t){return this._headers.set(e,t),this}get(e){return this._url=e,this._method="GET",this}post(e){return this._url=e,this._method="POST",this.set("content-type","application/json"),this}put(e){return this._url=e,this._method="PUT",this.set("content-type","application/json"),this}send(e){return this._body=JSON.stringify(e),this}end(e){return this._handleFetch(e)}}},"./src/app/Sentry.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{addBreadcrumb:()=>a,captureException:()=>o,captureMessage:()=>n,commitProfiling:()=>l,setTag:()=>r,setTags:()=>i});s={uuid:(()=>{const e=Date.now().toString(16)+Math.random().toString(16)+"0".repeat(16);return[e.substring(0,8),e.substring(8,4),"4000-8"+e.substring(13,3),e.substring(16,12)].join("-")})(),data:{messages:[],exceptions:[],tags:[],breadcrumbs:[]}};window.TrendMDProfiling=s;const n=e=>{},o=e=>{},r=(e,t)=>{},i=(e={})=>Object.entries(e).forEach(([e,t])=>r(e,t)),a=(e={})=>{"integrations"===e.category&&window.TrendMDProfiling.data.breadcrumbs.push({...e,timestamp:(new Date).getTime()})},l=()=>{}},"./src/app/TimeLogger.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>n});const n=class{constructor(){this.times={}}init(){this.times.start||(this.times.start=new Date)}log(e,t="start"){this.times.start||console.error(`TimeLogger: can't log ${e}, logger isn't initilized yet`),this.times[e]=new Date-this.times[t]}}},"./src/app/WebsiteProperties.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>n});var r=s("../../libs/meta-extractor/src/index.js"),i=s("./src/app/Request.js");class n{constructor({apiUrl:e,options:t,version:s,tag:n,timeLogger:o}){this.apiUrl=e,this.options=t,this.version=s,this.tag=n,this.timeLogger=o}async get(){return new Promise((n,o)=>{if(window.trendmdGlobalState.journal&&!this.options.displayWidgetOnDemand)n(window.trendmdGlobalState.journal);else{let s,e;var t;e=this.options.journal_id?(s=`/journals/${this.options.journal_id}/selectors`,{}):(s="/journals/identification",t=new r.MetaExtractor(window.document,{sources:["HighWire","DCSext","DublinCore","DCTerms","Prism","BEPress","EPrints","WolterKluwer","TandFonline","OUP"],tags:["doi","issn","journal_title","custom_id","isbn"]}),{doi:this.options.doi||t.doi,issn:this.options.issn||t.issn,isbn:this.options.isbn||t.isbn,url:this.options.url||window.location.href,custom_id:this.options.custom_id||t.custom_id}),(new i.default).get(this.apiUrl.sponsored+s).set(this.tag+"-widget-version",this.version).withCredentials().query(e).end((e,t)=>{"/journals/identification"===s?this.timeLogger.log("identification"):this.timeLogger.log("selectors"),e||t.error?o(e||t.error):t.json().then(e=>{window.trendmdGlobalState.journal=e.journal,n(e.journal)}).catch(e=>o(e))})}})}}},"./src/app/Widget.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>n});var i=s("./src/app/Sentry.js"),h=s("./src/app/WidgetPosition.js"),a=s("./src/app/ArticleHeader.js");class n{constructor({config:e,options:t,events:s,recommendations:n,instanceOptions:o,integrations:r,gdpr:i,recommendationsBalancer:a,articleInjector:l,numberOfWidgets:c,timeLogger:d,isMainInstance:u}){this.tag=e.tag,this.widgetId=o.widgetId,this.recommendations=n,this.events=s,this.recommendationsBalancer=a,this.integrations=r,this.articleInjector=l,this.position=new h.default({config:e,options:t,eventLogger:this.events._eventLogger,instanceOptions:o,gdpr:i,numberOfWidgets:c,timeLogger:d,isMainInstance:u})}async init(){return this.position.define(),(0,i.addBreadcrumb)({category:"Widget",message:"Initializing widget",level:"info",data:{widgetId:this.widgetId}}),Promise.race([this.recommendations.getSponsored(this.widgetId),this.recommendations.getNonSponsored(this.widgetId)]).then(async({header:e,text:t,type:s,timeout:n})=>{if(n)return Promise.reject(new Error("timeout"));n=new a.default(e[this.tag+"-article"]);this.recommendations.updateArticle(n);let o,r;this.events.testID=e["x-testid"],this.events.articleId=n.id,this.integrations.setArticleId(n.id),this.articleInjector&&this.articleInjector.setArticleId(n.id);try{await this.position.isDefinedPromise}catch(e){return(0,i.captureException)(e),e instanceof h.AbsentSelectorError?console.log(e.message):console.error("WidgetPosition error: "+e),Promise.reject()}this.recommendationsBalancer.onRecommendationsReceived(this.widgetId,t,s),this.position.setFirstResponse({type:s,text:t});e=await(o="sponsored"===s?this.recommendations.getNonSponsored(this.widgetId):this.recommendations.getSponsored(this.widgetId));this.recommendationsBalancer.onRecommendationsReceived(this.widgetId,e.text||"",e.type);try{r=await this.recommendationsBalancer.getBalancedRecommendations(this.widgetId)}catch(e){return(0,i.captureException)(e),e instanceof h.AbsentSelectorError?console.log(e.message):console.error("WidgetPosition error: "+e),Promise.reject()}return this.position.sponsoredPoolIsNotEmpty=0this.events.click(e,this.widgetId)),this.events.elements[this.widgetId]=this.position.widgetContainer,e.timeout?Promise.reject(new Error("timeout")):Promise.resolve(this.widgetId)}).catch(e=>{var t;return this.recommendationsBalancer.resolveLoadedPromise(this.widgetId),this.recommendationsBalancer.onError(this.widgetId),e?(t=e["error"],Promise.reject(t)):Promise.reject(e)})}}},"./src/app/WidgetInstances.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>n});var i=s("./src/app/Sentry.js"),a=s("./src/app/Widget.js"),l=s("./src/app/RecommendationsBalancer.js");class n{constructor({config:e,options:t,websiteProperties:s,events:n,recommendations:o,integrations:r,gdpr:i,articleInjector:a,timeLogger:l,isMainInstance:c}){this.isMainInstance=c,this.config=e,this.options=t,this.websiteProperties=s,this.events=n,this.recommendations=o,this.integrations=r,this.gdpr=i,this.articleInjector=a,this.timeLogger=l,this.instancesOptions=[],this.instances=[]}async init(){this.recommendations.isExecuted||await this.recommendations.run();let s;try{s=await this.websiteProperties.get()}catch(e){return(0,i.captureException)(e),void console.error("WebsiteProperties error: "+e)}this.events.journalId=s.id,this.events.contentCategory=s.category,this.events.switches=s.switches||{},this.isMainInstance&&(this.gdpr.journalId=s.id,this.gdpr.switches=s.switches||{},(0,i.setTag)("isGdpr",this.gdpr.gdpr),(0,i.setTag)("isAcs",this.gdpr.isAcs));const n=s.widgets.filter(e=>"external"!==e.widgetMode),o=new l.default(n),e=n.map(e=>{e=Object.assign({},e,{websiteId:s.id,switches:s.switches,hideWidget:s.hideExtraWidgets});(0,i.addBreadcrumb)({category:"Widget",message:"Creating widget",level:"info",data:{websiteId:s.id,widgetId:e.widgetId,conditionalLoading:e.conditionalLoading}}),(0,i.setTag)("conditionalLoading",e.conditionalLoading);const t=new a.default({config:this.config,options:this.options,events:this.events,recommendations:this.recommendations,instanceOptions:e,integrations:this.integrations,gdpr:this.gdpr,recommendationsBalancer:o,articleInjector:this.articleInjector,numberOfWidgets:n.length,timeLogger:this.timeLogger,isMainInstance:this.isMainInstance});return this.instances.push(t),this.instancesOptions.push(e),t.init()}),t=await Promise.all(e.map(e=>e.catch(()=>!1))).then(e=>e.filter(e=>!1!==e));var r=n.filter(e=>t.includes(e.widgetId)).reduce((e,t)=>e+t.numberOfRecommendations,0);this.isMainInstance&&this.gdpr.widgetIsLoaded&&this.gdpr.addGaTrackingCode(),this.events.impression(t,r)}allPresentInDOM(){if(this.instances.length){for(var e of this.instances)if(!e.position.getWidgetContainerInDOM())return!1;return!0}return!1}removeAllFromDOM(){this.instances.length&&this.instances.forEach(e=>{e.position.removeWidgetFromDOM()})}}},"./src/app/WidgetPosition.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{AbsentSelectorError:()=>c,RECOMMENDATION_LINK_CLASS:()=>r,default:()=>i});var n=s("./src/app/Sentry.js"),t=s("../../node_modules/domready/ready.js"),o=s.n(t),l=s("./src/app/Request.js");const r="trendmd-widget-list-item__link";class c extends Error{constructor({selector:e,widgetNumber:t,total:s}){super(),this.message=`TrendMD: widget ${t} of total ${s} widgets can't be injected. Unable to find selector '${e}'`}}o().domready=o();class i{constructor({config:e,options:t,instanceOptions:s,eventLogger:n,gdpr:o,numberOfWidgets:r,timeLogger:i,isMainInstance:a}){const{selectors:l,placementSelector:c,placementPosition:d,wrapperStart:u,wrapperEnd:h,numberOfRecommendations:m,conditionalLoading:p,websiteId:g}=s;this.isMainInstance=a,this.numberOfRecommendations=m,this.mainWidget=0===s.widgetId,this.widgetId=s.widgetId,this.totalWidgetsNumber=r,this.timeLogger=i,this.styleSheetUrl=e.styleSheetUrl,this.selectors=l,this.placementSelector=0{try{return window.self!==window.top}catch(e){return!0}})(),this._widgetPositionSelector=null,this._widgetContainerSelector=`.${this.config.tag}-widget-container`,this._dedicatedContainerSelector=this._widgetContainerSelector,this._adBlockCheckingContainerId=this.config.tag+"-check",this._journalId=s.id,this._switches=s.switches||{},this._eventLogger=n,this.postResponseCb=()=>null,this.isDefinedPromise=null}get dataset(){return this.element.querySelector(this._dedicatedContainerSelector).dataset}get widgetContainer(){return this.element.querySelector(this._dedicatedContainerSelector)}get widgetPositionElement(){return document.querySelector(this._widgetPositionSelector)}define(){this.isDefinedPromise=new Promise((i,a)=>{o().domready(()=>{this.timeLogger.log("domReady");var e=e=>e.replace(/#(\d)/g,"#\\3$1 "),t=document.querySelector(this.options.element);let s;if(this.placementSelector)if(this.config.infiniteScrollWebsiteIds.includes(this.websiteId)){this.placementSelector=this.options.element;const o=document.querySelector(e(this.placementSelector));o.id=this.options.element.slice(1),s=o}else s=document.querySelector(e(this.placementSelector));else s=null;let n=!1;if(this._widgetPositionSelector=this.options.element,s){const r=window.getComputedStyle(s);n="hidden"!==r.getPropertyValue("visibility")&&"none"!==r.getPropertyValue("display")}s&&n?(this.element=s,this.insertPosition=this.placementPosition||null,this.wrapperStart=this.widgetWrapperStart||"",this.wrapperEnd=this.widgetWrapperEnd||"",this._widgetPositionSelector=e(this.placementSelector)):this.mainWidget&&(this.element=t),this.element?(this.addStyle(),"function"==typeof this.options.cbRetrieve&&this.options.cbRetrieve(),i("OK")):(e=this.widgetId+1,a(new c({selector:this.placementSelector,widgetNumber:e,total:this.totalWidgetsNumber})))})})}afterFirstResponse(){this.postResponseCb=()=>{this.timeLogger.log("recos"),this.timeLogger.log("timeToClickStart"),this.checkAdBlock(),this.isMainInstance&&(this.gdpr.widgetIsLoaded=!0),this._switches.isUS&&Array.prototype.forEach.call(document.querySelectorAll(".trendmd-widget-dns"),e=>{e.style.display="block"}),"function"==typeof this.options.cb&&this.options.cb()}}setFirstResponse({type:e,text:t}){t=this.wrapResponsedText(t);this.insertPosition&&"replace"!==this.insertPosition?this.element.insertAdjacentHTML(this.insertPosition,t):this.element.innerHTML=t;const s=this.element.querySelector(this._widgetContainerSelector);s.setAttribute(`similar-${e}-merged`,!0),s.setAttribute("style","display: none;"),s.dataset[this.config.tag+"WidgetId"]=this.widgetId,this._dedicatedContainer=s,this._dedicatedContainerSelector=`${this._widgetContainerSelector}[data-trendmd-widget-id="${this.widgetId}"]`,this.trackResponse(),this.afterFirstResponse()}showWidget(){const e=this.element.querySelector(this._dedicatedContainerSelector);e.setAttribute("style","display: block;")}getWidgetContainerInDOM(){return this._dedicatedContainer&&document.querySelector(this._dedicatedContainerSelector)?this._dedicatedContainer:null}removeWidgetFromDOM(){const e=this.getWidgetContainerInDOM();return!!e&&(e.remove(),!0)}setSecondResponse({type:e,text:t}){if(t&&t.length){const o=document.createElement("html");o.innerHTML=t;var s=o.querySelectorAll("li.trendmd-widget-list-item").length,n=this.numberOfRecommendations>s,s="always load"===this.conditionalLoading&&(this.mainWidget&&0{n[t].innerHTML=e.innerHTML});const r=s.querySelector('a[href*="/logout"]');if(r&&(r.onclick=e=>{e.preventDefault(),(new l.default).get(r.href).withCredentials().end((e,t)=>{200===t.status&&location.reload()})}),"sponsored"===t){const a=o.querySelector(this._widgetContainerSelector);Object.keys(a.dataset).forEach(e=>{s.dataset[e]=a.dataset[e]})}}balanceListing(){const e=this.element.querySelector(this._dedicatedContainerSelector),[t,s]=e.querySelectorAll("ol.trendmd-widget-list");if(t&&s){let e=6;for(var n,o=-(t.children.length+s.children.length)%2;s.children.length-t.children.length!=o;)if(s.children.length-t.children.length>o&&(n=s.removeChild(s.children[0]),t.appendChild(n)),s.children.length-t.children.length{"A"===e.target.tagName&&t(e.target)},this.element.querySelector(this._dedicatedContainerSelector).onauxclick=e=>{"A"===e.target.tagName&&1===e.button&&t(e.target)}}wrapResponsedText(e){var t="string"==typeof this.wrapperStart?this.wrapperStart:"",s="string"==typeof this.wrapperEnd?this.wrapperEnd:"";return t+e.replace(/Pending({"use strict";s.r(t),s.d(t,{default:()=>n});class n{constructor(){this.events=new Map,this.initEvents()}addEventListener(e,t,s){if("navigatesuccess"!==e)throw new Error("Unsupported event type");let n;(n=this.events.has(e)?this.events.get(e):new Map).set(t,s),this.events.set(e,n)}removeEventListener(e,t){if(this.events.has(e)){const s=this.events.get(e);s&&(s.delete(t),this.events.set(e,s))}}dispatchEvent(e){if(e.type&&this.events.has(e.type))for(var[t,s]of this.events.entries())if("navigatesuccess"===t)for(var[n]of s.entries())n&&n.call(this,e);return!1}initEvents(){let t=window.location.href;const e=window.setInterval(()=>{var e;t!==window.location.href&&(t=window.location.href,e=new Event("navigatesuccess",{cancelable:!0}),this.dispatchEvent(e))},100);window.addEventListener("beforeunload",()=>{window.clearInterval(e)})}}},"../../libs/meta-extractor/src/DateParser.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});s("../../node_modules/core-js/modules/es.regexp.constructor.js"),s("../../node_modules/core-js/modules/es.regexp.exec.js"),s("../../node_modules/core-js/modules/es.regexp.to-string.js"),s("../../node_modules/core-js/modules/es.string.replace.js"),s("../../node_modules/core-js/modules/es.array.sort.js"),s("../../node_modules/core-js/modules/es.string.pad-start.js"),s("../../node_modules/core-js/modules/es.string.match.js");class n{constructor(e){this.candidates=e;const t=[{re:new RegExp(""+this.constructor.re.start+this.constructor.yearMonthNameDay.parts.map(e=>this.constructor.re[e]).join(this.constructor.re.separator)+this.constructor.re.end),year:this.constructor.yearMonthNameDay.year,month:this.constructor.yearMonthNameDay.month,day:this.constructor.yearMonthNameDay.day,name:!0}];this.patterns=t.concat(["yearMonthDay","yearMonthDayWithoutSeparator","yearAndMonthName","yearAndMonth","dayMonthNameYear","dayMonthYear","monthDayYear","monthNameDayYear","monthYear","monthNameAndYear","year"].map(e=>this.constructor[e]).map(e=>({re:new RegExp(""+this.constructor.re.start+e.parts.map(e=>this.constructor.re[e]).join((void 0!==e.separator?e:this.constructor.re).separator)+this.constructor.re.end),year:e.year,month:e.month,day:e.day,name:e.name}))),this.extracted=this.constructor.compact(this.candidates.map(e=>this.extract(e.replace(/(\s*\d{1,2}:\d{2}(:\d{2})?\s*([AaPp][Mm])?)/,"")))),this.sorted=this.extracted.sort((e,t)=>{return`${e[0]}-${(e[1]||99).toString().padStart(2,"0")}-`+(e[2]||99).toString().padStart(2,"0")<`${t[0]}-${(t[1]||99).toString().padStart(2,"0")}-`+(t[2]||99).toString().padStart(2,"0")?-1:1}),this.publicationDate=this.sorted[0]}extract(t){const n=["january","february","march","april","may","june","july","august","september","october","november","december"];for(let e=0;enull!=e)}}n.re={year:"(19\\d{2}|20\\d{2})",month:"(0?[1-9]|1[012])",monthName:"([A-Za-z]{3,9})",day:"(0{0,1}[1-9]|[12][0-9]|3[01])[A-Za-z]{0,2}",start:"(^|\\D)",end:"(\\D|$)",separator:"[.,/-\\s]+"},n.yearMonthDay={parts:["year","month","day"],year:2,month:3,day:4},n.yearMonthDayWithoutSeparator={parts:["year","month","day"],year:2,month:3,day:4,separator:""},n.yearMonthNameDay={parts:["year","monthName","day"],year:2,month:3,day:4,name:!0},n.yearAndMonthName={parts:["year","monthName"],year:2,month:3,name:!0},n.yearAndMonth={parts:["year","month"],year:2,month:3},n.monthDayYear={parts:["month","day","year"],year:4,month:2,day:3},n.monthNameDayYear={parts:["monthName","day","year"],year:4,month:2,day:3,name:!0},n.dayMonthNameYear={parts:["day","monthName","year"],year:4,month:3,day:2,name:!0},n.dayMonthYear={parts:["day","month","year"],year:4,month:3,day:2,separator:"[-.\\s]+"},n.monthYear={parts:["month","year"],year:3,month:2},n.monthNameAndYear={parts:["monthName","year"],year:3,month:2,name:!0},n.year={parts:["year"],year:2};const o=n},"../../libs/meta-extractor/src/camelCase.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>n});s("../../node_modules/core-js/modules/es.regexp.exec.js"),s("../../node_modules/core-js/modules/es.string.replace.js");const n=e=>e.replace(/_([a-z])/g,e=>e[1].toUpperCase())},"../../libs/meta-extractor/src/index.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{MetaExtractor:()=>n,sources:()=>i});s("../../node_modules/core-js/modules/es.array.reduce.js"),s("../../node_modules/core-js/modules/es.array.includes.js"),s("../../node_modules/core-js/modules/es.string.includes.js"),s("../../node_modules/core-js/modules/es.array.iterator.js"),s("../../node_modules/core-js/modules/web.dom-collections.iterator.js"),s("../../node_modules/core-js/modules/es.string.trim.js"),s("../../node_modules/core-js/modules/es.regexp.exec.js"),s("../../node_modules/core-js/modules/es.string.replace.js");var i=s("../../libs/meta-extractor/src/sources/index.js"),a=s("../../libs/meta-extractor/src/DateParser.js"),l=s("../../libs/meta-extractor/src/camelCase.js");class n{constructor(e,t={}){if(!e)throw new Error("document is required for new MetaExtractor instance");this.options=t,this.publicationDates={},this.parse(e)}parse(s){let e=this.options.sources||this.constructor.defaultSources;var{meta_extractor_options:t={prioritizeSelectors:void 0}}=this.options,n=t.prioritizeSelectors;const o=t.selectorsToRemoveFromInnerHTML||this.constructor.defaultSelectorsToRemoveFromInnerHTML,r=(n&&(this.options.prioritizeSelectors=n,e=e.reduce((e,t)=>"Selectors"===t?[t].concat(e):(e.push(t),e),[])),this.sources=e.map(e=>{const t="string"==typeof e?i[e]:e;return new t(s,this.options,o)}),[].slice.call(s.querySelectorAll("meta")).forEach(t=>{this.sources.forEach(e=>{e.add(t)})}),this.options.tags||this.constructor.defaultTags);r.forEach(e=>{var t,s,n;this.constructor.defaultDates.includes(e)?(t=(this.forCompact(e)&&this.forCompact(e).length?new a.default(this.forCompact(e)):{publicationDate:[]})["publicationDate"],[t,s,n]=t||[],this.publicationDates[(0,l.default)("publication_date"===e?"original_publication_date":e)]={day:n,month:s,year:t}):(n="get"+this.constructor.ucCamelCase(e),this[(0,l.default)(e)]=this[n]?this[n]():this.firstFor(e))})}get publication_year(){return this.publicationYear}set publication_year(e){this.publicationYear=e}get publication_month(){return this.publicationMonth}set publication_month(e){this.publicationMonth=e}get journal_title(){return this.journalTitle.trim()}set journal_title(e){this.journalTitle=e}get custom_id(){return this.customId}set custom_id(e){this.customId=e}static ucCamelCase(e){const t=(0,l.default)(e);return t.charAt(0).toUpperCase()+t.substr(1)}getPubmedId(){return this.firstFor("pubmed_id",Number)}getDoi(){const e=this.firstFor("doi");if(e)return e.trim().replace("info:doi/","").replace(/https?:\/\//,"").replace(/(dx.)?doi.org\//,"").replace(/doi[::]?/i,"")}getIssn(){const e=this.firstFor("issn");if(e)return e.trim().replace("issn:","").replace("info:issn/","")}getIsbn(){const e=this.firstFor("isbn");if(e)return e.trim()}getAuthors(){var t=this.constructor.uniq(this.forCompact("authors"));if(!(1e.get(t)).forEach(e=>{s="title"===t&&e?s.concat(e.replace(/^(【In Press】|In Press):?/i,"").trim()):s.concat(e)}),this.constructor.compact(s)}static compact(e){return e.filter(e=>null!=e)}static uniq(s){return s.filter((e,t)=>s.indexOf(e)===t)}}n.defaultSources=["HighWire","DublinCore","DCTerms","Prism","BEPress","EPrints","WolterKluwer","Selectors","OpenGraph"],n.defaultTags=["pubmed_id","doi","title","publication_date","online_publication_date","accepted_date","reviewed_date","authors","abstract"],n.defaultDates=["publication_date","online_publication_date","accepted_date","reviewed_date"],n.defaultSelectorsToRemoveFromInnerHTML=[".overlay"]},"../../libs/meta-extractor/src/sources/BEPress.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});class n extends s("../../libs/meta-extractor/src/sources/Source.js").default{}n.prefix=["bepress","citation"],n.separator="_";const o=n},"../../libs/meta-extractor/src/sources/DCSext.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});class n extends s("../../libs/meta-extractor/src/sources/Source.js").default{}n.defaultTags=["issn","journal_title","doi"],n.prefix="dcsext.wt",n.separator="_",n.issn="issn",n.journalTitle="name",n.doi="doi";const o=n},"../../libs/meta-extractor/src/sources/DCTerms.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});class n extends s("../../libs/meta-extractor/src/sources/Source.js").default{}n.defaultTags=["pubmed_id","doi","title","authors","abstract"],n.prefix="dcterms",n.authors="creator",n.abstract=["abstract","description"],n.journalTitle="publisher",n.issn="identifier.issn";const o=n},"../../libs/meta-extractor/src/sources/DublinCore.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});class n extends s("../../libs/meta-extractor/src/sources/Source.js").default{getIssn(){var t=this.forCompact("issn");for(let e=0;e{"use strict";s.r(t),s.d(t,{default:()=>o});class n extends s("../../libs/meta-extractor/src/sources/Source.js").default{}n.prefix="eprints",n.authors="creators_name",n.journalTitle=["publication","publisher"];const o=n},"../../libs/meta-extractor/src/sources/HighWire.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});class n extends s("../../libs/meta-extractor/src/sources/Source.js").default{forCompact(e){return this.buckets[e]=this.constructor.prioritizeEngMeta(this.buckets[e]),super.forCompact(e)}static prioritizeEngMeta(e){return[].concat(e.filter(e=>e.getAttribute&&"en"===e.getAttribute("xml:lang")),e.filter(e=>!e.getAttribute||"en"!==e.getAttribute("xml:lang")))}}n.isbn="isbn",n.prefix="citation",n.separator="_";const o=n},"../../libs/meta-extractor/src/sources/OUP.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});s("../../node_modules/core-js/modules/es.string.trim.js");class n extends s("../../libs/meta-extractor/src/sources/Source.js").default{getIsbn(){const e=this.document.querySelector(".book-info__isbn-number");return e&&e.textContent?e.textContent.trim():null}}const o=n},"../../libs/meta-extractor/src/sources/OpenGraph.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});class n extends s("../../libs/meta-extractor/src/sources/Source.js").default{static nodeTag(e){const t=e.getAttribute("property");return t?t.toLowerCase():super.nodeTag(e)}}n.prefix="og",n.separator=":",n.authors=[],n.publicationDate="article:published_time",n.abstract="description";const o=n},"../../libs/meta-extractor/src/sources/Prism.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});class n extends s("../../libs/meta-extractor/src/sources/Source.js").default{}n.prefix="prism",n.publicationDate="publicationdate",n.journalTitle="publicationname",n.issn=["eissn","issn"];const o=n},"../../libs/meta-extractor/src/sources/Selectors.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});s("../../node_modules/core-js/modules/es.object.assign.js"),s("../../node_modules/core-js/modules/es.regexp.exec.js"),s("../../node_modules/core-js/modules/es.string.split.js"),s("../../node_modules/core-js/modules/es.string.replace.js"),s("../../node_modules/core-js/modules/es.string.trim.js"),s("../../node_modules/core-js/modules/es.array.iterator.js"),s("../../node_modules/core-js/modules/web.dom-collections.iterator.js");class n extends s("../../libs/meta-extractor/src/sources/Source.js").default{constructor(e,t,s){super(e,t);e=this.options.selectors||{};this.options.selectors=Object.assign(e,e.publication_dates),this.buckets={},this.tags.forEach(e=>{var t="publication_date"!==e?this.options.selectors[e]:this.options.selectors[e]||this.options.selectors.original_publication_date;t&&(this.buckets[e]=[].slice.call(this.document.querySelectorAll(t)).map(e=>{if("META"===e.tagName)return e.content;global.NodeList&&!global.NodeList.prototype.forEach&&(global.NodeList.prototype.forEach=Array.prototype.forEach);const t=e.cloneNode(!0);return t.querySelectorAll(s).forEach(e=>e.parentNode.removeChild(e)),t.innerHTML}))})}forCompact(t){if(!this.buckets[t])return[];var e=this.buckets[t].map(e=>"authors"===t?this.constructor.handleCommaSeparatedNameNotation(this.clean(e).replace(/\s*\band\b/g,",").replace(/[\d;:!?~`"'@#$%^&*()/|\\№+=✉]+/g,"").replace(/(^\s*[,-]*\s*)|(\s*[,-]*\s*$)/g,"").split(/,\s*/).map(e=>e.trim())):this.clean(e));return[].concat(...e)}add(){this.added=this.added}static handleCommaSeparatedNameNotation(e){var t=e[0].split(/[\s;:.!?+&*/%]+/).filter(e=>e).length;return 1{"use strict";s.r(t),s.d(t,{default:()=>r});s("../../node_modules/core-js/modules/es.string.trim.js"),s("../../node_modules/core-js/modules/es.regexp.exec.js"),s("../../node_modules/core-js/modules/es.string.match.js"),s("../../node_modules/core-js/modules/es.array.sort.js"),s("../../node_modules/core-js/modules/es.string.split.js"),s("../../node_modules/core-js/modules/es.string.replace.js"),s("../../node_modules/core-js/modules/es.array.iterator.js"),s("../../node_modules/core-js/modules/web.dom-collections.iterator.js");var n=s("../../libs/meta-extractor/src/camelCase.js");class o{constructor(e,t={}){this.document=e,this.options=t,this.tags=this.options.tags||this.constructor.defaultTags,this.tagMap={},this.buckets={},this.tagOrder={},this.tags.forEach(t=>{this.buckets[t]=[],this.tagOrder[t]=[],[].concat(this.constructor[(0,n.default)(t)]).forEach(e=>{e=this.constructor.tag(e);this.tagMap[e]=this.tagMap[e]||[],this.tagMap[e].push(t),this.tagOrder[t].push(e)})})}add(t){var e=this.constructor.nodeTag(t);const s=this.tagMap[e]||[];s.forEach(e=>{t.getAttribute("content")&&this.buckets[e].push(t)})}get(e){var t="get"+this.constructor.ucCamelCase(e);return"function"==typeof this[t]?this[t]():this.firstFor(e)}getAuthors(){return this.forCompact("authors")}getPublicationDate(){return this.forCompact("publication_date")}getOnlinePublicationDate(){return this.forCompact("online_publication_date")}getAcceptedDate(){return this.forCompact("accepted_date")}getReviewedDate(){return this.forCompact("reviewed_date")}getAbstract(){const e=this.forCompact("abstract");return e&&e.length?e.join(" ").trim():null}getDoi(e="doi"){var t=this.forCompact(e);for(let e=0;ethis.sortScore(s,e)-this.sortScore(s,t));var e=this.buckets[s].map(e=>{e=e.getAttribute?e.getAttribute("content"):e;return"authors"===s?this.constructor.handleCommaSeparatedNameNotation(this.clean(e).replace(/\s*\band\b/g,",").replace(/[\d;:!?~`"'@#$%^&*()/|\\№+=✉]+/g,"").replace(/(^\s*[,-]*\s*)|(\s*[,-]*\s*$)/g,"").split(/,\s*/).map(e=>e.trim())):this.clean(e)});return[].concat(...e)}sortScore(e,t){const s=this.tagOrder[e]||"";return s.indexOf(this.constructor.nodeTag(t))}static checkDoi(e){return e.match(/\//g)}clean(e){return this.htmlDecode(e).replace(/[\n\t]+/g," ").replace(/\s+/g," ").trim()}htmlDecode(e){if(!e)return"";const t=this.document.createElement("div");return t.innerHTML=e.replace(/[^]*?<\/style>|[^]*?<\/script>|[^]*?<\/noscript>/g,"").replace(/()/g,"$1 "),t.textContent}static tag(e){return[].concat(this.prefix).concat(e).join(this.separator)}static nodeTag(e){const t=e.getAttribute("name");return t?t.toLowerCase():"invalid"}static ucCamelCase(e){const t=(0,n.default)(e);return t.charAt(0).toUpperCase()+t.substr(1)}static handleCommaSeparatedNameNotation(e){var t=e[0].split(/[\s;:.!?+&*/%]+/).filter(e=>e).length;return 1{"use strict";s.r(t),s.d(t,{default:()=>o});s("../../node_modules/core-js/modules/es.regexp.exec.js");class n extends s("../../libs/meta-extractor/src/sources/Source.js").default{getCustomId(){var e=this.document.querySelector('meta[name="pbContext"]');if(e&&e.content){e=/journal:journal:([^;]+)(;|$)/.exec(e.content);if(e&&1{"use strict";s.r(t),s.d(t,{default:()=>o});class n extends s("../../libs/meta-extractor/src/sources/Source.js").default{}n.prefix="wkhealth",n.separator="_";const o=n},"../../libs/meta-extractor/src/sources/index.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{BEPress:()=>a.default,DCSext:()=>p.default,DCTerms:()=>u.default,DublinCore:()=>r.default,EPrints:()=>l.default,HighWire:()=>o.default,OUP:()=>g.default,OpenGraph:()=>c.default,Prism:()=>i.default,Selectors:()=>h.default,Source:()=>n.default,TandFonline:()=>m.default,WolterKluwer:()=>d.default});var n=s("../../libs/meta-extractor/src/sources/Source.js"),o=s("../../libs/meta-extractor/src/sources/HighWire.js"),r=s("../../libs/meta-extractor/src/sources/DublinCore.js"),i=s("../../libs/meta-extractor/src/sources/Prism.js"),a=s("../../libs/meta-extractor/src/sources/BEPress.js"),l=s("../../libs/meta-extractor/src/sources/EPrints.js"),c=s("../../libs/meta-extractor/src/sources/OpenGraph.js"),d=s("../../libs/meta-extractor/src/sources/WolterKluwer.js"),u=s("../../libs/meta-extractor/src/sources/DCTerms.js"),h=s("../../libs/meta-extractor/src/sources/Selectors.js"),m=s("../../libs/meta-extractor/src/sources/TandFonline.js"),p=s("../../libs/meta-extractor/src/sources/DCSext.js"),g=s("../../libs/meta-extractor/src/sources/OUP.js")},"../../node_modules/core-js/internals/a-callable.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/is-callable.js"),o=s("../../node_modules/core-js/internals/try-to-string.js"),r=TypeError;e.exports=function(e){if(n(e))return e;throw r(o(e)+" is not a function")}},"../../node_modules/core-js/internals/a-constructor.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/is-constructor.js"),o=s("../../node_modules/core-js/internals/try-to-string.js"),r=TypeError;e.exports=function(e){if(n(e))return e;throw r(o(e)+" is not a constructor")}},"../../node_modules/core-js/internals/a-possible-prototype.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/is-callable.js"),o=String,r=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw r("Can't set "+o(e)+" as a prototype")}},"../../node_modules/core-js/internals/add-to-unscopables.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/well-known-symbol.js"),o=s("../../node_modules/core-js/internals/object-create.js"),s=s("../../node_modules/core-js/internals/object-define-property.js").f,r=n("unscopables"),i=Array.prototype;null==i[r]&&s(i,r,{configurable:!0,value:o(null)}),e.exports=function(e){i[r][e]=!0}},"../../node_modules/core-js/internals/advance-string-index.js":(e,t,s)=>{"use strict";var n=s("../../node_modules/core-js/internals/string-multibyte.js").charAt;e.exports=function(e,t,s){return t+(s?n(e,t).length:1)}},"../../node_modules/core-js/internals/an-object.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/is-object.js"),o=String,r=TypeError;e.exports=function(e){if(n(e))return e;throw r(o(e)+" is not an object")}},"../../node_modules/core-js/internals/array-includes.js":(e,t,s)=>{function n(a){return function(e,t,s){var n,o=l(e),r=d(o),i=c(s,r);if(a&&t!=t){for(;i{"use strict";var n=s("../../node_modules/core-js/internals/fails.js");e.exports=function(e,t){var s=[][e];return!!s&&n(function(){s.call(null,t||function(){return 1},1)})}},"../../node_modules/core-js/internals/array-reduce.js":(e,t,s)=>{function n(c){return function(e,t,s,n){d(t);var o=u(e),r=h(o),i=m(o),a=c?i-1:0,l=c?-1:1;if(s<2)for(;;){if(a in r){n=r[a],a+=l;break}if(a+=l,c?a<0:i<=a)throw p("Reduce of empty array with no initial value")}for(;c?0<=a:a{var l=s("../../node_modules/core-js/internals/to-absolute-index.js"),c=s("../../node_modules/core-js/internals/length-of-array-like.js"),d=s("../../node_modules/core-js/internals/create-property.js"),u=Array,h=Math.max;e.exports=function(e,t,s){for(var n=c(e),o=l(t,n),r=l(void 0===s?n:s,n),i=u(h(r-o,0)),a=0;o{function _(e,t){var s=e.length,n=y(s/2);if(s<8){for(var o,r,i=e,a=t,l=i.length,c=1;c{var s=s("../../node_modules/core-js/internals/function-uncurry-this.js"),n=s({}.toString),o=s("".slice);e.exports=function(e){return o(n(e),8,-1)}},"../../node_modules/core-js/internals/classof.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/to-string-tag-support.js"),o=s("../../node_modules/core-js/internals/is-callable.js"),r=s("../../node_modules/core-js/internals/classof-raw.js"),i=s("../../node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),a=Object,l="Arguments"==r(function(){return arguments}());e.exports=n?r:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=a(e),i))?t:l?r(e):"Object"==(t=r(e))&&o(e.callee)?"Arguments":t}},"../../node_modules/core-js/internals/copy-constructor-properties.js":(e,t,s)=>{var l=s("../../node_modules/core-js/internals/has-own-property.js"),c=s("../../node_modules/core-js/internals/own-keys.js"),d=s("../../node_modules/core-js/internals/object-get-own-property-descriptor.js"),u=s("../../node_modules/core-js/internals/object-define-property.js");e.exports=function(e,t,s){for(var n=c(t),o=u.f,r=d.f,i=0;i{var n=s("../../node_modules/core-js/internals/well-known-symbol.js")("match");e.exports=function(t){var s=/./;try{"/./"[t](s)}catch(e){try{return s[n]=!1,"/./"[t](s)}catch(e){}}return!1}},"../../node_modules/core-js/internals/correct-prototype-getter.js":(e,t,s)=>{s=s("../../node_modules/core-js/internals/fails.js");e.exports=!s(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},"../../node_modules/core-js/internals/create-iterator-constructor.js":(e,t,s)=>{"use strict";function o(){return this}var r=s("../../node_modules/core-js/internals/iterators-core.js").IteratorPrototype,i=s("../../node_modules/core-js/internals/object-create.js"),a=s("../../node_modules/core-js/internals/create-property-descriptor.js"),l=s("../../node_modules/core-js/internals/set-to-string-tag.js"),c=s("../../node_modules/core-js/internals/iterators.js");e.exports=function(e,t,s,n){t+=" Iterator";return e.prototype=i(r,{next:a(+!n,s)}),l(e,t,!1,!0),c[t]=o,e}},"../../node_modules/core-js/internals/create-non-enumerable-property.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/descriptors.js"),o=s("../../node_modules/core-js/internals/object-define-property.js"),r=s("../../node_modules/core-js/internals/create-property-descriptor.js");e.exports=n?function(e,t,s){return o.f(e,t,r(1,s))}:function(e,t,s){return e[t]=s,e}},"../../node_modules/core-js/internals/create-property-descriptor.js":e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"../../node_modules/core-js/internals/create-property.js":(e,t,s)=>{"use strict";var n=s("../../node_modules/core-js/internals/to-property-key.js"),o=s("../../node_modules/core-js/internals/object-define-property.js"),r=s("../../node_modules/core-js/internals/create-property-descriptor.js");e.exports=function(e,t,s){t=n(t);t in e?o.f(e,t,r(0,s)):e[t]=s}},"../../node_modules/core-js/internals/define-built-in.js":(e,t,s)=>{var i=s("../../node_modules/core-js/internals/is-callable.js"),a=s("../../node_modules/core-js/internals/object-define-property.js"),l=s("../../node_modules/core-js/internals/make-built-in.js"),c=s("../../node_modules/core-js/internals/define-global-property.js");e.exports=function(e,t,s,n){var o=(n=n||{}).enumerable,r=void 0!==n.name?n.name:t;if(i(s)&&l(s,r,n),n.global)o?e[t]=s:c(t,s);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=s:a.f(e,t,{value:s,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}},"../../node_modules/core-js/internals/define-global-property.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/global.js"),o=Object.defineProperty;e.exports=function(t,s){try{o(n,t,{value:s,configurable:!0,writable:!0})}catch(e){n[t]=s}return s}},"../../node_modules/core-js/internals/define-iterator.js":(e,t,s)=>{"use strict";function g(){return this}var j=s("../../node_modules/core-js/internals/export.js"),f=s("../../node_modules/core-js/internals/function-call.js"),_=s("../../node_modules/core-js/internals/is-pure.js"),n=s("../../node_modules/core-js/internals/function-name.js"),b=s("../../node_modules/core-js/internals/is-callable.js"),y=s("../../node_modules/core-js/internals/create-iterator-constructor.js"),w=s("../../node_modules/core-js/internals/object-get-prototype-of.js"),v=s("../../node_modules/core-js/internals/object-set-prototype-of.js"),x=s("../../node_modules/core-js/internals/set-to-string-tag.js"),I=s("../../node_modules/core-js/internals/create-non-enumerable-property.js"),S=s("../../node_modules/core-js/internals/define-built-in.js"),o=s("../../node_modules/core-js/internals/well-known-symbol.js"),C=s("../../node_modules/core-js/internals/iterators.js"),s=s("../../node_modules/core-js/internals/iterators-core.js"),P=n.PROPER,E=n.CONFIGURABLE,O=s.IteratorPrototype,k=s.BUGGY_SAFARI_ITERATORS,L=o("iterator"),A="values",T="entries";e.exports=function(e,t,s,n,o,r,i){y(s,t,n);function a(e){if(e===o&&m)return m;if(!k&&e in u)return u[e];switch(e){case"keys":case A:case T:return function(){return new s(this,e)}}return function(){return new s(this)}}var l,c,n=t+" Iterator",d=!1,u=e.prototype,h=u[L]||u["@@iterator"]||o&&u[o],m=!k&&h||a(o),p="Array"==t&&u.entries||h;if(p&&(p=w(p.call(new e)))!==Object.prototype&&p.next&&(_||w(p)===O||(v?v(p,O):b(p[L])||S(p,L,g)),x(p,n,!0,!0),_&&(C[n]=g)),P&&o==A&&h&&h.name!==A&&(!_&&E?I(u,"name",A):(d=!0,m=function(){return f(h,this)})),o)if(l={values:a(A),keys:r?m:a("keys"),entries:a(T)},i)for(c in l)!k&&!d&&c in u||S(u,c,l[c]);else j({target:t,proto:!0,forced:k||d},l);return _&&!i||u[L]===m||S(u,L,m,{name:o}),C[t]=m,l}},"../../node_modules/core-js/internals/delete-property-or-throw.js":(e,t,s)=>{"use strict";var n=s("../../node_modules/core-js/internals/try-to-string.js"),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+n(t)+" of "+n(e))}},"../../node_modules/core-js/internals/descriptors.js":(e,t,s)=>{s=s("../../node_modules/core-js/internals/fails.js");e.exports=!s(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},"../../node_modules/core-js/internals/document-create-element.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/global.js"),s=s("../../node_modules/core-js/internals/is-object.js"),o=n.document,r=s(o)&&s(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},"../../node_modules/core-js/internals/dom-iterables.js":e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"../../node_modules/core-js/internals/dom-token-list-prototype.js":(e,t,s)=>{s=s("../../node_modules/core-js/internals/document-create-element.js")("span").classList,s=s&&s.constructor&&s.constructor.prototype;e.exports=s===Object.prototype?void 0:s},"../../node_modules/core-js/internals/engine-ff-version.js":(e,t,s)=>{s=s("../../node_modules/core-js/internals/engine-user-agent.js").match(/firefox\/(\d+)/i);e.exports=!!s&&+s[1]},"../../node_modules/core-js/internals/engine-is-ie-or-edge.js":(e,t,s)=>{s=s("../../node_modules/core-js/internals/engine-user-agent.js");e.exports=/MSIE|Trident/.test(s)},"../../node_modules/core-js/internals/engine-is-node.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/classof-raw.js"),s=s("../../node_modules/core-js/internals/global.js");e.exports="process"==n(s.process)},"../../node_modules/core-js/internals/engine-user-agent.js":(e,t,s)=>{s=s("../../node_modules/core-js/internals/get-built-in.js");e.exports=s("navigator","userAgent")||""},"../../node_modules/core-js/internals/engine-v8-version.js":(e,t,s)=>{var n,o,r=s("../../node_modules/core-js/internals/global.js"),s=s("../../node_modules/core-js/internals/engine-user-agent.js"),i=r.process,r=r.Deno,i=i&&i.versions||r&&r.version,r=i&&i.v8;!(o=r?0<(n=r.split("."))[0]&&n[0]<4?1:+(n[0]+n[1]):o)&&s&&(!(n=s.match(/Edge\/(\d+)/))||74<=n[1])&&(n=s.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},"../../node_modules/core-js/internals/engine-webkit-version.js":(e,t,s)=>{s=s("../../node_modules/core-js/internals/engine-user-agent.js").match(/AppleWebKit\/(\d+)\./);e.exports=!!s&&+s[1]},"../../node_modules/core-js/internals/enum-bug-keys.js":e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"../../node_modules/core-js/internals/export.js":(e,t,s)=>{var c=s("../../node_modules/core-js/internals/global.js"),d=s("../../node_modules/core-js/internals/object-get-own-property-descriptor.js").f,u=s("../../node_modules/core-js/internals/create-non-enumerable-property.js"),h=s("../../node_modules/core-js/internals/define-built-in.js"),m=s("../../node_modules/core-js/internals/define-global-property.js"),p=s("../../node_modules/core-js/internals/copy-constructor-properties.js"),g=s("../../node_modules/core-js/internals/is-forced.js");e.exports=function(e,t){var s,n,o,r=e.target,i=e.global,a=e.stat,l=i?c:a?c[r]||m(r,{}):(c[r]||{}).prototype;if(l)for(s in t){if(n=t[s],o=e.dontCallGetSet?(o=d(l,s))&&o.value:l[s],!g(i?s:r+(a?".":"#")+s,e.forced)&&void 0!==o){if(typeof n==typeof o)continue;p(n,o)}(e.sham||o&&o.sham)&&u(n,"sham",!0),h(l,s,n,e)}}},"../../node_modules/core-js/internals/fails.js":e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},"../../node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js":(e,t,s)=>{"use strict";s("../../node_modules/core-js/modules/es.regexp.exec.js");var l=s("../../node_modules/core-js/internals/function-uncurry-this.js"),c=s("../../node_modules/core-js/internals/define-built-in.js"),d=s("../../node_modules/core-js/internals/regexp-exec.js"),u=s("../../node_modules/core-js/internals/fails.js"),h=s("../../node_modules/core-js/internals/well-known-symbol.js"),m=s("../../node_modules/core-js/internals/create-non-enumerable-property.js"),p=h("species"),g=RegExp.prototype;e.exports=function(s,e,t,n){var i,o=h(s),a=!u(function(){var e={};return e[o]=function(){return 7},7!=""[s](e)}),r=a&&!u(function(){var e=!1,t=/a/;return"split"===s&&((t={constructor:{}}).constructor[p]=function(){return t},t.flags="",t[o]=/./[o]),t.exec=function(){return e=!0,null},t[o](""),!e});a&&r&&!t||(i=l(/./[o]),r=e(o,""[s],function(e,t,s,n,o){var e=l(e),r=t.exec;return r===d||r===g.exec?a&&!o?{done:!0,value:i(t,s,n)}:{done:!0,value:e(s,t,n)}:{done:!1}}),c(String.prototype,s,r[0]),c(g,o,r[1])),n&&m(g[o],"sham",!0)}},"../../node_modules/core-js/internals/function-apply.js":(e,t,s)=>{var s=s("../../node_modules/core-js/internals/function-bind-native.js"),n=Function.prototype,o=n.apply,r=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?r.bind(o):function(){return r.apply(o,arguments)})},"../../node_modules/core-js/internals/function-bind-native.js":(e,t,s)=>{s=s("../../node_modules/core-js/internals/fails.js");e.exports=!s(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},"../../node_modules/core-js/internals/function-call.js":(e,t,s)=>{var s=s("../../node_modules/core-js/internals/function-bind-native.js"),n=Function.prototype.call;e.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},"../../node_modules/core-js/internals/function-name.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/descriptors.js"),s=s("../../node_modules/core-js/internals/has-own-property.js"),o=Function.prototype,r=n&&Object.getOwnPropertyDescriptor,s=s(o,"name"),i=s&&"something"===function(){}.name,n=s&&(!n||r(o,"name").configurable);e.exports={EXISTS:s,PROPER:i,CONFIGURABLE:n}},"../../node_modules/core-js/internals/function-uncurry-this.js":(e,t,s)=>{var s=s("../../node_modules/core-js/internals/function-bind-native.js"),n=Function.prototype,o=n.bind,r=n.call,i=s&&o.bind(r,r);e.exports=s?function(e){return e&&i(e)}:function(e){return e&&function(){return r.apply(e,arguments)}}},"../../node_modules/core-js/internals/get-built-in.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/global.js"),o=s("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e,t){return arguments.length<2?(s=n[e],o(s)?s:void 0):n[e]&&n[e][t];var s}},"../../node_modules/core-js/internals/get-method.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/a-callable.js");e.exports=function(e,t){e=e[t];return null==e?void 0:n(e)}},"../../node_modules/core-js/internals/get-substitution.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/function-uncurry-this.js"),o=s("../../node_modules/core-js/internals/to-object.js"),h=Math.floor,m=n("".charAt),p=n("".replace),g=n("".slice),j=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;e.exports=function(r,i,a,l,c,e){var d=a+r.length,u=l.length,t=f;return void 0!==c&&(c=o(c),t=j),p(e,t,function(e,t){var s;switch(m(t,0)){case"$":return"$";case"&":return r;case"`":return g(i,0,a);case"'":return g(i,d);case"<":s=c[g(t,1,-1)];break;default:var n,o=+t;if(0==o)return e;if(u{function t(e){return e&&e.Math==Math&&e}e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||Function("return this")()},"../../node_modules/core-js/internals/has-own-property.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/function-uncurry-this.js"),o=s("../../node_modules/core-js/internals/to-object.js"),r=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(o(e),t)}},"../../node_modules/core-js/internals/hidden-keys.js":e=>{e.exports={}},"../../node_modules/core-js/internals/html.js":(e,t,s)=>{s=s("../../node_modules/core-js/internals/get-built-in.js");e.exports=s("document","documentElement")},"../../node_modules/core-js/internals/ie8-dom-define.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/descriptors.js"),o=s("../../node_modules/core-js/internals/fails.js"),r=s("../../node_modules/core-js/internals/document-create-element.js");e.exports=!n&&!o(function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})},"../../node_modules/core-js/internals/indexed-object.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/function-uncurry-this.js"),o=s("../../node_modules/core-js/internals/fails.js"),r=s("../../node_modules/core-js/internals/classof-raw.js"),i=Object,a=n("".split);e.exports=o(function(){return!i("z").propertyIsEnumerable(0)})?function(e){return"String"==r(e)?a(e,""):i(e)}:i},"../../node_modules/core-js/internals/inherit-if-required.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/is-callable.js"),o=s("../../node_modules/core-js/internals/is-object.js"),r=s("../../node_modules/core-js/internals/object-set-prototype-of.js");e.exports=function(e,t,s){return r&&n(t=t.constructor)&&t!==s&&o(t=t.prototype)&&t!==s.prototype&&r(e,t),e}},"../../node_modules/core-js/internals/inspect-source.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/function-uncurry-this.js"),o=s("../../node_modules/core-js/internals/is-callable.js"),s=s("../../node_modules/core-js/internals/shared-store.js"),r=n(Function.toString);o(s.inspectSource)||(s.inspectSource=function(e){return r(e)}),e.exports=s.inspectSource},"../../node_modules/core-js/internals/internal-state.js":(e,t,s)=>{var n,o,r,i,a,l,c,d,u=s("../../node_modules/core-js/internals/native-weak-map.js"),h=s("../../node_modules/core-js/internals/global.js"),m=s("../../node_modules/core-js/internals/function-uncurry-this.js"),p=s("../../node_modules/core-js/internals/is-object.js"),g=s("../../node_modules/core-js/internals/create-non-enumerable-property.js"),j=s("../../node_modules/core-js/internals/has-own-property.js"),f=s("../../node_modules/core-js/internals/shared-store.js"),_=s("../../node_modules/core-js/internals/shared-key.js"),s=s("../../node_modules/core-js/internals/hidden-keys.js"),b="Object already initialized",y=h.TypeError,h=h.WeakMap;c=u||f.state?(n=f.state||(f.state=new h),o=m(n.get),r=m(n.has),i=m(n.set),a=function(e,t){if(r(n,e))throw new y(b);return t.facade=e,i(n,e,t),t},l=function(e){return o(n,e)||{}},function(e){return r(n,e)}):(s[d=_("state")]=!0,a=function(e,t){if(j(e,d))throw new y(b);return t.facade=e,g(e,d,t),t},l=function(e){return j(e,d)?e[d]:{}},function(e){return j(e,d)}),e.exports={set:a,get:l,has:c,enforce:function(e){return c(e)?l(e):a(e,{})},getterFor:function(t){return function(e){if(p(e)&&(e=l(e)).type===t)return e;throw y("Incompatible receiver, "+t+" required")}}}},"../../node_modules/core-js/internals/is-callable.js":e=>{e.exports=function(e){return"function"==typeof e}},"../../node_modules/core-js/internals/is-constructor.js":(e,t,s)=>{function n(){}function o(e){if(!l(e))return!1;try{return m(n,h,e),!0}catch(e){return!1}}function r(e){if(!l(e))return!1;switch(c(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return j||!!g(p,u(e))}catch(e){return!0}}var i=s("../../node_modules/core-js/internals/function-uncurry-this.js"),a=s("../../node_modules/core-js/internals/fails.js"),l=s("../../node_modules/core-js/internals/is-callable.js"),c=s("../../node_modules/core-js/internals/classof.js"),d=s("../../node_modules/core-js/internals/get-built-in.js"),u=s("../../node_modules/core-js/internals/inspect-source.js"),h=[],m=d("Reflect","construct"),p=/^\s*(?:class|function)\b/,g=i(p.exec),j=!p.exec(n);r.sham=!0,e.exports=!m||a(function(){var e;return o(o.call)||!o(Object)||!o(function(){e=!0})||e})?r:o},"../../node_modules/core-js/internals/is-forced.js":(e,t,s)=>{function n(e,t){return(e=l[a(e)])==d||e!=c&&(r(t)?o(t):!!t)}var o=s("../../node_modules/core-js/internals/fails.js"),r=s("../../node_modules/core-js/internals/is-callable.js"),i=/#|\.prototype\./,a=n.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=n.data={},c=n.NATIVE="N",d=n.POLYFILL="P";e.exports=n},"../../node_modules/core-js/internals/is-object.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/is-callable.js");e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},"../../node_modules/core-js/internals/is-pure.js":e=>{e.exports=!1},"../../node_modules/core-js/internals/is-regexp.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/is-object.js"),o=s("../../node_modules/core-js/internals/classof-raw.js"),r=s("../../node_modules/core-js/internals/well-known-symbol.js")("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},"../../node_modules/core-js/internals/is-symbol.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/get-built-in.js"),o=s("../../node_modules/core-js/internals/is-callable.js"),r=s("../../node_modules/core-js/internals/object-is-prototype-of.js"),s=s("../../node_modules/core-js/internals/use-symbol-as-uid.js"),i=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&r(t.prototype,i(e))}},"../../node_modules/core-js/internals/iterators-core.js":(e,t,s)=>{"use strict";var n,o,r=s("../../node_modules/core-js/internals/fails.js"),i=s("../../node_modules/core-js/internals/is-callable.js"),a=s("../../node_modules/core-js/internals/object-create.js"),l=s("../../node_modules/core-js/internals/object-get-prototype-of.js"),c=s("../../node_modules/core-js/internals/define-built-in.js"),d=s("../../node_modules/core-js/internals/well-known-symbol.js"),s=s("../../node_modules/core-js/internals/is-pure.js"),u=d("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(l=l(l(o)))!==Object.prototype&&(n=l):d=!0),null==n||r(function(){var e={};return n[u].call(e)!==e})?n={}:s&&(n=a(n)),i(n[u])||c(n,u,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},"../../node_modules/core-js/internals/iterators.js":e=>{e.exports={}},"../../node_modules/core-js/internals/length-of-array-like.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/to-length.js");e.exports=function(e){return n(e.length)}},"../../node_modules/core-js/internals/make-built-in.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/fails.js"),o=s("../../node_modules/core-js/internals/is-callable.js"),r=s("../../node_modules/core-js/internals/has-own-property.js"),i=s("../../node_modules/core-js/internals/descriptors.js"),a=s("../../node_modules/core-js/internals/function-name.js").CONFIGURABLE,l=s("../../node_modules/core-js/internals/inspect-source.js"),s=s("../../node_modules/core-js/internals/internal-state.js"),c=s.enforce,d=s.get,u=Object.defineProperty,h=i&&!n(function(){return 8!==u(function(){},"length",{value:8}).length}),m=String(String).split("String"),s=e.exports=function(e,t,s){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(t="get "+t),s&&s.setter&&(t="set "+t),(!r(e,"name")||a&&e.name!==t)&&(i?u(e,"name",{value:t,configurable:!0}):e.name=t),h&&s&&r(s,"arity")&&e.length!==s.arity&&u(e,"length",{value:s.arity});try{s&&r(s,"constructor")&&s.constructor?i&&u(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}s=c(e);return r(s,"source")||(s.source=m.join("string"==typeof t?t:"")),e};Function.prototype.toString=s(function(){return o(this)&&d(this).source||l(this)},"toString")},"../../node_modules/core-js/internals/math-trunc.js":e=>{var t=Math.ceil,s=Math.floor;e.exports=Math.trunc||function(e){e=+e;return(0{var n=s("../../node_modules/core-js/internals/engine-v8-version.js"),s=s("../../node_modules/core-js/internals/fails.js");e.exports=!!Object.getOwnPropertySymbols&&!s(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},"../../node_modules/core-js/internals/native-weak-map.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/global.js"),o=s("../../node_modules/core-js/internals/is-callable.js"),s=s("../../node_modules/core-js/internals/inspect-source.js"),n=n.WeakMap;e.exports=o(n)&&/native code/.test(s(n))},"../../node_modules/core-js/internals/not-a-regexp.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/is-regexp.js"),o=TypeError;e.exports=function(e){if(n(e))throw o("The method doesn't accept regular expressions");return e}},"../../node_modules/core-js/internals/object-assign.js":(e,t,s)=>{"use strict";var h=s("../../node_modules/core-js/internals/descriptors.js"),n=s("../../node_modules/core-js/internals/function-uncurry-this.js"),m=s("../../node_modules/core-js/internals/function-call.js"),o=s("../../node_modules/core-js/internals/fails.js"),p=s("../../node_modules/core-js/internals/object-keys.js"),g=s("../../node_modules/core-js/internals/object-get-own-property-symbols.js"),j=s("../../node_modules/core-js/internals/object-property-is-enumerable.js"),f=s("../../node_modules/core-js/internals/to-object.js"),_=s("../../node_modules/core-js/internals/indexed-object.js"),r=Object.assign,i=Object.defineProperty,b=n([].concat);e.exports=!r||o(function(){if(h&&1!==r({b:1},r(i({},"a",{enumerable:!0,get:function(){i(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},s=Symbol(),n="abcdefghijklmnopqrst";return e[s]=7,n.split("").forEach(function(e){t[e]=e}),7!=r({},e)[s]||p(r({},t)).join("")!=n})?function(e,t){for(var s=f(e),n=arguments.length,o=1,r=g.f,i=j.f;o{function n(){}function o(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t}var r,i=s("../../node_modules/core-js/internals/an-object.js"),a=s("../../node_modules/core-js/internals/object-define-properties.js"),l=s("../../node_modules/core-js/internals/enum-bug-keys.js"),c=s("../../node_modules/core-js/internals/hidden-keys.js"),d=s("../../node_modules/core-js/internals/html.js"),u=s("../../node_modules/core-js/internals/document-create-element.js"),s=s("../../node_modules/core-js/internals/shared-key.js"),h="prototype",m="script",p=s("IE_PROTO"),g=function(e){return"<"+m+">"+e+""},j=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}j="undefined"==typeof document||document.domain&&r?o(r):(e=u("iframe"),t="java"+m+":",e.style.display="none",d.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F);for(var e,t,s=l.length;s--;)delete j[h][l[s]];return j()};c[p]=!0,e.exports=Object.create||function(e,t){var s;return null!==e?(n[h]=i(e),s=new n,n[h]=null,s[p]=e):s=j(),void 0===t?s:a.f(s,t)}},"../../node_modules/core-js/internals/object-define-properties.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/descriptors.js"),o=s("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),a=s("../../node_modules/core-js/internals/object-define-property.js"),l=s("../../node_modules/core-js/internals/an-object.js"),c=s("../../node_modules/core-js/internals/to-indexed-object.js"),d=s("../../node_modules/core-js/internals/object-keys.js");t.f=n&&!o?Object.defineProperties:function(e,t){l(e);for(var s,n=c(t),o=d(t),r=o.length,i=0;i{var n=s("../../node_modules/core-js/internals/descriptors.js"),o=s("../../node_modules/core-js/internals/ie8-dom-define.js"),r=s("../../node_modules/core-js/internals/v8-prototype-define-bug.js"),i=s("../../node_modules/core-js/internals/an-object.js"),a=s("../../node_modules/core-js/internals/to-property-key.js"),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u="enumerable",h="configurable",m="writable";t.f=n?r?function(e,t,s){var n;return i(e),t=a(t),i(s),"function"==typeof e&&"prototype"===t&&"value"in s&&m in s&&!s[m]&&((n=d(e,t))&&n[m]&&(e[t]=s.value,s={configurable:(h in s?s:n)[h],enumerable:(u in s?s:n)[u],writable:!1})),c(e,t,s)}:c:function(e,t,s){if(i(e),t=a(t),i(s),o)try{return c(e,t,s)}catch(e){}if("get"in s||"set"in s)throw l("Accessors not supported");return"value"in s&&(e[t]=s.value),e}},"../../node_modules/core-js/internals/object-get-own-property-descriptor.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/descriptors.js"),o=s("../../node_modules/core-js/internals/function-call.js"),r=s("../../node_modules/core-js/internals/object-property-is-enumerable.js"),i=s("../../node_modules/core-js/internals/create-property-descriptor.js"),a=s("../../node_modules/core-js/internals/to-indexed-object.js"),l=s("../../node_modules/core-js/internals/to-property-key.js"),c=s("../../node_modules/core-js/internals/has-own-property.js"),d=s("../../node_modules/core-js/internals/ie8-dom-define.js"),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=a(e),t=l(t),d)try{return u(e,t)}catch(e){}if(c(e,t))return i(!o(r.f,e,t),e[t])}},"../../node_modules/core-js/internals/object-get-own-property-names.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/object-keys-internal.js"),o=s("../../node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},"../../node_modules/core-js/internals/object-get-own-property-symbols.js":(e,t)=>{t.f=Object.getOwnPropertySymbols},"../../node_modules/core-js/internals/object-get-prototype-of.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/has-own-property.js"),o=s("../../node_modules/core-js/internals/is-callable.js"),r=s("../../node_modules/core-js/internals/to-object.js"),i=s("../../node_modules/core-js/internals/shared-key.js"),s=s("../../node_modules/core-js/internals/correct-prototype-getter.js"),a=i("IE_PROTO"),l=Object,c=l.prototype;e.exports=s?l.getPrototypeOf:function(e){e=r(e);if(n(e,a))return e[a];var t=e.constructor;return o(t)&&e instanceof t?t.prototype:e instanceof l?c:null}},"../../node_modules/core-js/internals/object-is-prototype-of.js":(e,t,s)=>{s=s("../../node_modules/core-js/internals/function-uncurry-this.js");e.exports=s({}.isPrototypeOf)},"../../node_modules/core-js/internals/object-keys-internal.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/function-uncurry-this.js"),i=s("../../node_modules/core-js/internals/has-own-property.js"),a=s("../../node_modules/core-js/internals/to-indexed-object.js"),l=s("../../node_modules/core-js/internals/array-includes.js").indexOf,c=s("../../node_modules/core-js/internals/hidden-keys.js"),d=n([].push);e.exports=function(e,t){var s,n=a(e),o=0,r=[];for(s in n)!i(c,s)&&i(n,s)&&d(r,s);for(;t.length>o;)!i(n,s=t[o++])||~l(r,s)||d(r,s);return r}},"../../node_modules/core-js/internals/object-keys.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/object-keys-internal.js"),o=s("../../node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return n(e,o)}},"../../node_modules/core-js/internals/object-property-is-enumerable.js":(e,t)=>{"use strict";var s={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!s.call({1:2},1);t.f=o?function(e){e=n(this,e);return!!e&&e.enumerable}:s},"../../node_modules/core-js/internals/object-set-prototype-of.js":(e,t,s)=>{var o=s("../../node_modules/core-js/internals/function-uncurry-this.js"),r=s("../../node_modules/core-js/internals/an-object.js"),i=s("../../node_modules/core-js/internals/a-possible-prototype.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s,n=!1,e={};try{(s=o(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(e){}return function(e,t){return r(e),i(t),n?s(e,t):e.__proto__=t,e}}():void 0)},"../../node_modules/core-js/internals/ordinary-to-primitive.js":(e,t,s)=>{var o=s("../../node_modules/core-js/internals/function-call.js"),r=s("../../node_modules/core-js/internals/is-callable.js"),i=s("../../node_modules/core-js/internals/is-object.js"),a=TypeError;e.exports=function(e,t){var s,n;if("string"===t&&r(s=e.toString)&&!i(n=o(s,e)))return n;if(r(s=e.valueOf)&&!i(n=o(s,e)))return n;if("string"!==t&&r(s=e.toString)&&!i(n=o(s,e)))return n;throw a("Can't convert object to primitive value")}},"../../node_modules/core-js/internals/own-keys.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/get-built-in.js"),o=s("../../node_modules/core-js/internals/function-uncurry-this.js"),r=s("../../node_modules/core-js/internals/object-get-own-property-names.js"),i=s("../../node_modules/core-js/internals/object-get-own-property-symbols.js"),a=s("../../node_modules/core-js/internals/an-object.js"),l=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=r.f(a(e)),s=i.f;return s?l(t,s(e)):t}},"../../node_modules/core-js/internals/proxy-accessor.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/object-define-property.js").f;e.exports=function(e,t,s){s in e||n(e,s,{configurable:!0,get:function(){return t[s]},set:function(e){t[s]=e}})}},"../../node_modules/core-js/internals/regexp-exec-abstract.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/function-call.js"),o=s("../../node_modules/core-js/internals/an-object.js"),r=s("../../node_modules/core-js/internals/is-callable.js"),i=s("../../node_modules/core-js/internals/classof-raw.js"),a=s("../../node_modules/core-js/internals/regexp-exec.js"),l=TypeError;e.exports=function(e,t){var s=e.exec;if(r(s))return null!==(s=n(s,e,t))&&o(s),s;if("RegExp"===i(e))return n(a,e,t);throw l("RegExp#exec called on incompatible receiver")}},"../../node_modules/core-js/internals/regexp-exec.js":(e,t,s)=>{"use strict";var p=s("../../node_modules/core-js/internals/function-call.js"),n=s("../../node_modules/core-js/internals/function-uncurry-this.js"),g=s("../../node_modules/core-js/internals/to-string.js"),j=s("../../node_modules/core-js/internals/regexp-flags.js"),o=s("../../node_modules/core-js/internals/regexp-sticky-helpers.js"),r=s("../../node_modules/core-js/internals/shared.js"),f=s("../../node_modules/core-js/internals/object-create.js"),_=s("../../node_modules/core-js/internals/internal-state.js").get,i=s("../../node_modules/core-js/internals/regexp-unsupported-dot-all.js"),s=s("../../node_modules/core-js/internals/regexp-unsupported-ncg.js"),b=r("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,w=y,v=n("".charAt),x=n("".indexOf),I=n("".replace),S=n("".slice),C=(r=/b*/g,p(y,n=/a/,"a"),p(y,r,"a"),0!==n.lastIndex||0!==r.lastIndex),P=o.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];(C||E||P||i||s)&&(w=function(e){var t,s,n,o,r,i,a=this,l=_(a),e=g(e),c=l.raw;if(c)return c.lastIndex=a.lastIndex,u=p(w,c,e),a.lastIndex=c.lastIndex,u;var d=l.groups,c=P&&a.sticky,u=p(j,a),l=a.source,h=0,m=e;if(c&&(u=I(u,"y",""),-1===x(u,"g")&&(u+="g"),m=S(e,a.lastIndex),0{"use strict";var n=s("../../node_modules/core-js/internals/an-object.js");e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},"../../node_modules/core-js/internals/regexp-get-flags.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/function-call.js"),o=s("../../node_modules/core-js/internals/has-own-property.js"),r=s("../../node_modules/core-js/internals/object-is-prototype-of.js"),i=s("../../node_modules/core-js/internals/regexp-flags.js"),a=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in a||o(e,"flags")||!r(a,e)?t:n(i,e)}},"../../node_modules/core-js/internals/regexp-sticky-helpers.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/fails.js"),o=s("../../node_modules/core-js/internals/global.js").RegExp,s=n(function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),r=s||n(function(){return!o("a","y").sticky}),n=s||n(function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")});e.exports={BROKEN_CARET:n,MISSED_STICKY:r,UNSUPPORTED_Y:s}},"../../node_modules/core-js/internals/regexp-unsupported-dot-all.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/fails.js"),o=s("../../node_modules/core-js/internals/global.js").RegExp;e.exports=n(function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})},"../../node_modules/core-js/internals/regexp-unsupported-ncg.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/fails.js"),o=s("../../node_modules/core-js/internals/global.js").RegExp;e.exports=n(function(){var e=o("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")})},"../../node_modules/core-js/internals/require-object-coercible.js":e=>{var t=TypeError;e.exports=function(e){if(null==e)throw t("Can't call method on "+e);return e}},"../../node_modules/core-js/internals/set-species.js":(e,t,s)=>{"use strict";var n=s("../../node_modules/core-js/internals/get-built-in.js"),o=s("../../node_modules/core-js/internals/object-define-property.js"),r=s("../../node_modules/core-js/internals/well-known-symbol.js"),i=s("../../node_modules/core-js/internals/descriptors.js"),a=r("species");e.exports=function(e){var e=n(e),t=o.f;i&&e&&!e[a]&&t(e,a,{configurable:!0,get:function(){return this}})}},"../../node_modules/core-js/internals/set-to-string-tag.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/object-define-property.js").f,o=s("../../node_modules/core-js/internals/has-own-property.js"),r=s("../../node_modules/core-js/internals/well-known-symbol.js")("toStringTag");e.exports=function(e,t,s){(e=e&&!s?e.prototype:e)&&!o(e,r)&&n(e,r,{configurable:!0,value:t})}},"../../node_modules/core-js/internals/shared-key.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/shared.js"),o=s("../../node_modules/core-js/internals/uid.js"),r=n("keys");e.exports=function(e){return r[e]||(r[e]=o(e))}},"../../node_modules/core-js/internals/shared-store.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/global.js"),s=s("../../node_modules/core-js/internals/define-global-property.js"),o="__core-js_shared__",n=n[o]||s(o,{});e.exports=n},"../../node_modules/core-js/internals/shared.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/is-pure.js"),o=s("../../node_modules/core-js/internals/shared-store.js");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.0",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"../../node_modules/core-js/internals/species-constructor.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/an-object.js"),o=s("../../node_modules/core-js/internals/a-constructor.js"),r=s("../../node_modules/core-js/internals/well-known-symbol.js")("species");e.exports=function(e,t){var e=n(e).constructor;return void 0===e||null==(e=n(e)[r])?t:o(e)}},"../../node_modules/core-js/internals/string-multibyte.js":(e,t,s)=>{function n(o){return function(e,t){var s,e=i(a(e)),t=r(t),n=e.length;return t<0||n<=t?o?"":void 0:(s=c(e,t))<55296||56319{s=s("../../node_modules/core-js/internals/engine-user-agent.js");e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(s)},"../../node_modules/core-js/internals/string-pad.js":(e,t,s)=>{function n(o){return function(e,t,s){var e=i(l(e)),t=r(t),n=e.length,s=void 0===s?" ":i(s);return t<=n||""==s?e:((n=c(s,u((t=t-n)/s.length))).length>t&&(n=d(n,0,t)),o?e+n:n+e)}}var o=s("../../node_modules/core-js/internals/function-uncurry-this.js"),r=s("../../node_modules/core-js/internals/to-length.js"),i=s("../../node_modules/core-js/internals/to-string.js"),a=s("../../node_modules/core-js/internals/string-repeat.js"),l=s("../../node_modules/core-js/internals/require-object-coercible.js"),c=o(a),d=o("".slice),u=Math.ceil;e.exports={start:n(!1),end:n(!0)}},"../../node_modules/core-js/internals/string-repeat.js":(e,t,s)=>{"use strict";var o=s("../../node_modules/core-js/internals/to-integer-or-infinity.js"),r=s("../../node_modules/core-js/internals/to-string.js"),i=s("../../node_modules/core-js/internals/require-object-coercible.js"),a=RangeError;e.exports=function(e){var t=r(i(this)),s="",n=o(e);if(n<0||n==1/0)throw a("Wrong number of repetitions");for(;0>>=1)&&(t+=t))1&n&&(s+=t);return s}},"../../node_modules/core-js/internals/string-trim-forced.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/function-name.js").PROPER,o=s("../../node_modules/core-js/internals/fails.js"),r=s("../../node_modules/core-js/internals/whitespaces.js");e.exports=function(e){return o(function(){return!!r[e]()||"​…᠎"!=="​…᠎"[e]()||n&&r[e].name!==e})}},"../../node_modules/core-js/internals/string-trim.js":(e,t,s)=>{function n(t){return function(e){e=i(r(e));return 1&t&&(e=a(e,l,"")),e=2&t?a(e,c,""):e}}var o=s("../../node_modules/core-js/internals/function-uncurry-this.js"),r=s("../../node_modules/core-js/internals/require-object-coercible.js"),i=s("../../node_modules/core-js/internals/to-string.js"),s=s("../../node_modules/core-js/internals/whitespaces.js"),a=o("".replace),o="["+s+"]",l=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$");e.exports={start:n(1),end:n(2),trim:n(3)}},"../../node_modules/core-js/internals/to-absolute-index.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/to-integer-or-infinity.js"),o=Math.max,r=Math.min;e.exports=function(e,t){e=n(e);return e<0?o(e+t,0):r(e,t)}},"../../node_modules/core-js/internals/to-indexed-object.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/indexed-object.js"),o=s("../../node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return n(o(e))}},"../../node_modules/core-js/internals/to-integer-or-infinity.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/math-trunc.js");e.exports=function(e){e=+e;return e!=e||0==e?0:n(e)}},"../../node_modules/core-js/internals/to-length.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/to-integer-or-infinity.js"),o=Math.min;e.exports=function(e){return 0{var n=s("../../node_modules/core-js/internals/require-object-coercible.js"),o=Object;e.exports=function(e){return o(n(e))}},"../../node_modules/core-js/internals/to-primitive.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/function-call.js"),o=s("../../node_modules/core-js/internals/is-object.js"),r=s("../../node_modules/core-js/internals/is-symbol.js"),i=s("../../node_modules/core-js/internals/get-method.js"),a=s("../../node_modules/core-js/internals/ordinary-to-primitive.js"),s=s("../../node_modules/core-js/internals/well-known-symbol.js"),l=TypeError,c=s("toPrimitive");e.exports=function(e,t){if(!o(e)||r(e))return e;var s=i(e,c);if(s){if(s=n(s,e,t=void 0===t?"default":t),!o(s)||r(s))return s;throw l("Can't convert object to primitive value")}return a(e,t=void 0===t?"number":t)}},"../../node_modules/core-js/internals/to-property-key.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/to-primitive.js"),o=s("../../node_modules/core-js/internals/is-symbol.js");e.exports=function(e){e=n(e,"string");return o(e)?e:e+""}},"../../node_modules/core-js/internals/to-string-tag-support.js":(e,t,s)=>{var n={};n[s("../../node_modules/core-js/internals/well-known-symbol.js")("toStringTag")]="z",e.exports="[object z]"===String(n)},"../../node_modules/core-js/internals/to-string.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/classof.js"),o=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},"../../node_modules/core-js/internals/try-to-string.js":e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},"../../node_modules/core-js/internals/uid.js":(e,t,s)=>{var s=s("../../node_modules/core-js/internals/function-uncurry-this.js"),n=0,o=Math.random(),r=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++n+o,36)}},"../../node_modules/core-js/internals/use-symbol-as-uid.js":(e,t,s)=>{s=s("../../node_modules/core-js/internals/native-symbol.js");e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"../../node_modules/core-js/internals/v8-prototype-define-bug.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/descriptors.js"),s=s("../../node_modules/core-js/internals/fails.js");e.exports=n&&s(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},"../../node_modules/core-js/internals/well-known-symbol.js":(e,t,s)=>{var n=s("../../node_modules/core-js/internals/global.js"),o=s("../../node_modules/core-js/internals/shared.js"),r=s("../../node_modules/core-js/internals/has-own-property.js"),i=s("../../node_modules/core-js/internals/uid.js"),a=s("../../node_modules/core-js/internals/native-symbol.js"),l=s("../../node_modules/core-js/internals/use-symbol-as-uid.js"),c=o("wks"),d=n.Symbol,u=d&&d.for,h=l?d:d&&d.withoutSetter||i;e.exports=function(e){var t;return r(c,e)&&(a||"string"==typeof c[e])||(t="Symbol."+e,a&&r(d,e)?c[e]=d[e]:c[e]=(l&&u?u:h)(t)),c[e]}},"../../node_modules/core-js/internals/whitespaces.js":e=>{e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"../../node_modules/core-js/modules/es.array.includes.js":(e,t,s)=>{"use strict";var n=s("../../node_modules/core-js/internals/export.js"),o=s("../../node_modules/core-js/internals/array-includes.js").includes,r=s("../../node_modules/core-js/internals/fails.js"),s=s("../../node_modules/core-js/internals/add-to-unscopables.js");n({target:"Array",proto:!0,forced:r(function(){return!Array(1).includes()})},{includes:function(e){return o(this,e,1{"use strict";var n=s("../../node_modules/core-js/internals/to-indexed-object.js"),o=s("../../node_modules/core-js/internals/add-to-unscopables.js"),r=s("../../node_modules/core-js/internals/iterators.js"),i=s("../../node_modules/core-js/internals/internal-state.js"),a=s("../../node_modules/core-js/internals/object-define-property.js").f,l=s("../../node_modules/core-js/internals/define-iterator.js"),c=s("../../node_modules/core-js/internals/is-pure.js"),s=s("../../node_modules/core-js/internals/descriptors.js"),d="Array Iterator",u=i.set,h=i.getterFor(d),i=(e.exports=l(Array,"Array",function(e,t){u(this,{type:d,target:n(e),index:0,kind:t})},function(){var e=h(this),t=e.target,s=e.kind,n=e.index++;return!t||n>=t.length?{value:e.target=void 0,done:!0}:"keys"==s?{value:n,done:!1}:"values"==s?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),r.Arguments=r.Array);if(o("keys"),o("values"),o("entries"),!c&&s&&"values"!==i.name)try{a(i,"name",{value:"values"})}catch(e){}},"../../node_modules/core-js/modules/es.array.reduce.js":(e,t,s)=>{"use strict";var n=s("../../node_modules/core-js/internals/export.js"),o=s("../../node_modules/core-js/internals/array-reduce.js").left,r=s("../../node_modules/core-js/internals/array-method-is-strict.js"),i=s("../../node_modules/core-js/internals/engine-v8-version.js"),s=s("../../node_modules/core-js/internals/engine-is-node.js");n({target:"Array",proto:!0,forced:!r("reduce")||!s&&79{"use strict";var n=s("../../node_modules/core-js/internals/export.js"),o=s("../../node_modules/core-js/internals/function-uncurry-this.js"),a=s("../../node_modules/core-js/internals/a-callable.js"),l=s("../../node_modules/core-js/internals/to-object.js"),c=s("../../node_modules/core-js/internals/length-of-array-like.js"),d=s("../../node_modules/core-js/internals/delete-property-or-throw.js"),u=s("../../node_modules/core-js/internals/to-string.js"),r=s("../../node_modules/core-js/internals/fails.js"),h=s("../../node_modules/core-js/internals/array-sort.js"),i=s("../../node_modules/core-js/internals/array-method-is-strict.js"),m=s("../../node_modules/core-js/internals/engine-ff-version.js"),p=s("../../node_modules/core-js/internals/engine-is-ie-or-edge.js"),g=s("../../node_modules/core-js/internals/engine-v8-version.js"),j=s("../../node_modules/core-js/internals/engine-webkit-version.js"),f=[],_=o(f.sort),b=o(f.push),s=r(function(){f.sort(void 0)}),o=r(function(){f.sort(null)}),i=i("sort"),y=!r(function(){if(g)return g<70;if(!(m&&3u(t)?1:-1})),s=o.length,i=0;i{var n=s("../../node_modules/core-js/internals/export.js"),s=s("../../node_modules/core-js/internals/object-assign.js");n({target:"Object",stat:!0,arity:2,forced:Object.assign!==s},{assign:s})},"../../node_modules/core-js/modules/es.regexp.constructor.js":(D,W,e)=>{var t=e("../../node_modules/core-js/internals/descriptors.js"),s=e("../../node_modules/core-js/internals/global.js"),n=e("../../node_modules/core-js/internals/function-uncurry-this.js"),o=e("../../node_modules/core-js/internals/is-forced.js"),c=e("../../node_modules/core-js/internals/inherit-if-required.js"),d=e("../../node_modules/core-js/internals/create-non-enumerable-property.js"),r=e("../../node_modules/core-js/internals/object-get-own-property-names.js").f,u=e("../../node_modules/core-js/internals/object-is-prototype-of.js"),h=e("../../node_modules/core-js/internals/is-regexp.js"),m=e("../../node_modules/core-js/internals/to-string.js"),p=e("../../node_modules/core-js/internals/regexp-get-flags.js"),i=e("../../node_modules/core-js/internals/regexp-sticky-helpers.js"),a=e("../../node_modules/core-js/internals/proxy-accessor.js"),l=e("../../node_modules/core-js/internals/define-built-in.js"),g=e("../../node_modules/core-js/internals/fails.js"),j=e("../../node_modules/core-js/internals/has-own-property.js"),f=e("../../node_modules/core-js/internals/internal-state.js").enforce,_=e("../../node_modules/core-js/internals/set-species.js"),b=e("../../node_modules/core-js/internals/well-known-symbol.js"),y=e("../../node_modules/core-js/internals/regexp-unsupported-dot-all.js"),w=e("../../node_modules/core-js/internals/regexp-unsupported-ncg.js"),v=b("match"),x=s.RegExp,I=x.prototype,S=s.SyntaxError,C=n(I.exec),P=n("".charAt),E=n("".replace),O=n("".indexOf),N=n("".slice),q=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,k=/a/g,L=/a/g,e=new x(k)!==k,A=i.MISSED_STICKY,U=i.UNSUPPORTED_Y,b=t&&(!e||A||y||w||g(function(){return L[v]=!1,x(k)!=k||x(L)==L||"/a/i"!=x(k,"i")}));if(o("RegExp",b)){function T(e,t){var s,n,o=u(I,this),r=h(e),i=void 0===t,a=[],l=e;if(!o&&r&&i&&e.constructor===T)return e;if((r||u(I,e))&&(e=e.source,i&&(t=p(l))),e=void 0===e?"":m(e),t=void 0===t?"":m(t),l=e,r=t=y&&"dotAll"in k&&(s=!!t&&-1"===t&&l:if(""===d||j(i,d))throw new S("Invalid capture group name");i[d]=!0,l=!(r[r.length]=[d,c]),d="";continue}l?d+=t:o+=t}return[o,r]}(e))[0],a=i[1]),i=c(x(e,t),o?this:I,T),(s||n||a.length)&&(t=f(i),s&&(t.dotAll=!0,t.raw=T(function(e){for(var t,s=e.length,n=0,o="",r=!1;n<=s;n++)"\\"===(t=P(e,n))?o+=t+P(e,++n):r||"."!==t?("["===t?r=!0:"]"===t&&(r=!1),o+=t):o+="[\\s\\S]";return o}(e),r)),n&&(t.sticky=!0),a.length&&(t.groups=a)),e!==l)try{d(i,"source",""===l?"(?:)":l)}catch(e){}return i}for(var R=r(x),M=0;R.length>M;)a(T,x,R[M++]);(I.constructor=T).prototype=I,l(s,"RegExp",T,{constructor:!0})}_("RegExp")},"../../node_modules/core-js/modules/es.regexp.exec.js":(e,t,s)=>{"use strict";var n=s("../../node_modules/core-js/internals/export.js"),s=s("../../node_modules/core-js/internals/regexp-exec.js");n({target:"RegExp",proto:!0,forced:/./.exec!==s},{exec:s})},"../../node_modules/core-js/modules/es.regexp.to-string.js":(e,t,s)=>{"use strict";var n=s("../../node_modules/core-js/internals/function-name.js").PROPER,o=s("../../node_modules/core-js/internals/define-built-in.js"),r=s("../../node_modules/core-js/internals/an-object.js"),i=s("../../node_modules/core-js/internals/to-string.js"),a=s("../../node_modules/core-js/internals/fails.js"),l=s("../../node_modules/core-js/internals/regexp-get-flags.js"),s="toString",c=RegExp.prototype[s],a=a(function(){return"/a/b"!=c.call({source:"a",flags:"b"})}),n=n&&c.name!=s;(a||n)&&o(RegExp.prototype,s,function(){var e=r(this);return"/"+i(e.source)+"/"+i(l(e))},{unsafe:!0})},"../../node_modules/core-js/modules/es.string.includes.js":(e,t,s)=>{"use strict";var n=s("../../node_modules/core-js/internals/export.js"),o=s("../../node_modules/core-js/internals/function-uncurry-this.js"),r=s("../../node_modules/core-js/internals/not-a-regexp.js"),i=s("../../node_modules/core-js/internals/require-object-coercible.js"),a=s("../../node_modules/core-js/internals/to-string.js"),s=s("../../node_modules/core-js/internals/correct-is-regexp-logic.js"),l=o("".indexOf);n({target:"String",proto:!0,forced:!s("includes")},{includes:function(e){return!!~l(a(i(this)),a(r(e)),1{"use strict";var o=s("../../node_modules/core-js/internals/function-call.js"),n=s("../../node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"),c=s("../../node_modules/core-js/internals/an-object.js"),d=s("../../node_modules/core-js/internals/to-length.js"),u=s("../../node_modules/core-js/internals/to-string.js"),r=s("../../node_modules/core-js/internals/require-object-coercible.js"),i=s("../../node_modules/core-js/internals/get-method.js"),h=s("../../node_modules/core-js/internals/advance-string-index.js"),m=s("../../node_modules/core-js/internals/regexp-exec-abstract.js");n("match",function(n,a,l){return[function(e){var t=r(this),s=null==e?void 0:i(e,n);return s?o(s,e,t):new RegExp(e)[n](u(t))},function(e){var t=c(this),s=u(e),e=l(a,t,s);if(e.done)return e.value;if(!t.global)return m(t,s);for(var n=t.unicode,o=[],r=t.lastIndex=0;null!==(i=m(t,s));){var i=u(i[0]);""===(o[r]=i)&&(t.lastIndex=h(s,d(t.lastIndex),n)),r++}return 0===r?null:o}]})},"../../node_modules/core-js/modules/es.string.pad-start.js":(e,t,s)=>{"use strict";var n=s("../../node_modules/core-js/internals/export.js"),o=s("../../node_modules/core-js/internals/string-pad.js").start;n({target:"String",proto:!0,forced:s("../../node_modules/core-js/internals/string-pad-webkit-bug.js")},{padStart:function(e){return o(this,e,1{"use strict";var v=s("../../node_modules/core-js/internals/function-apply.js"),o=s("../../node_modules/core-js/internals/function-call.js"),n=s("../../node_modules/core-js/internals/function-uncurry-this.js"),r=s("../../node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"),i=s("../../node_modules/core-js/internals/fails.js"),x=s("../../node_modules/core-js/internals/an-object.js"),I=s("../../node_modules/core-js/internals/is-callable.js"),S=s("../../node_modules/core-js/internals/to-integer-or-infinity.js"),C=s("../../node_modules/core-js/internals/to-length.js"),P=s("../../node_modules/core-js/internals/to-string.js"),a=s("../../node_modules/core-js/internals/require-object-coercible.js"),E=s("../../node_modules/core-js/internals/advance-string-index.js"),l=s("../../node_modules/core-js/internals/get-method.js"),O=s("../../node_modules/core-js/internals/get-substitution.js"),k=s("../../node_modules/core-js/internals/regexp-exec-abstract.js"),c=s("../../node_modules/core-js/internals/well-known-symbol.js")("replace"),L=Math.max,A=Math.min,T=n([].concat),R=n([].push),M=n("".indexOf),D=n("".slice),s="$0"==="a".replace(/./,"$0"),d=!!/./[c]&&""===/./[c]("a","$0");r("replace",function(e,b,y){var w=d?"$":"$0";return[function(e,t){var s=a(this),n=null==e?void 0:l(e,c);return n?o(n,e,s,t):o(b,P(s),e,t)},function(e,t){var s=x(this),n=P(e);if("string"==typeof t&&-1===M(t,w)&&-1===M(t,"$<")){e=y(b,s,n,t);if(e.done)return e.value}for(var o,r=I(t),i=(r||(t=P(t)),s.global),a=(i&&(o=s.unicode,s.lastIndex=0),[]);null!==(h=k(s,n))&&(R(a,h),i);)""===P(h[0])&&(s.lastIndex=E(n,C(s.lastIndex),o));for(var l,c="",d=0,u=0;u")})||!s||d)},"../../node_modules/core-js/modules/es.string.split.js":(e,t,s)=>{"use strict";var d=s("../../node_modules/core-js/internals/function-apply.js"),u=s("../../node_modules/core-js/internals/function-call.js"),n=s("../../node_modules/core-js/internals/function-uncurry-this.js"),o=s("../../node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"),h=s("../../node_modules/core-js/internals/is-regexp.js"),f=s("../../node_modules/core-js/internals/an-object.js"),m=s("../../node_modules/core-js/internals/require-object-coercible.js"),_=s("../../node_modules/core-js/internals/species-constructor.js"),b=s("../../node_modules/core-js/internals/advance-string-index.js"),y=s("../../node_modules/core-js/internals/to-length.js"),w=s("../../node_modules/core-js/internals/to-string.js"),r=s("../../node_modules/core-js/internals/get-method.js"),v=s("../../node_modules/core-js/internals/array-slice-simple.js"),x=s("../../node_modules/core-js/internals/regexp-exec-abstract.js"),I=s("../../node_modules/core-js/internals/regexp-exec.js"),i=s("../../node_modules/core-js/internals/regexp-sticky-helpers.js"),s=s("../../node_modules/core-js/internals/fails.js"),S=i.UNSUPPORTED_Y,C=4294967295,P=Math.min,E=[].push,O=n(/./.exec),k=n(E),L=n("".slice);o("split",function(o,p,g){var j="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var s=w(m(this)),n=void 0===t?C:t>>>0;if(0==n)return[];if(void 0===e)return[s];if(!h(e))return u(p,s,e,n);for(var o,r,i,a=[],t=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,c=new RegExp(e.source,t+"g");(o=u(I,c,s))&&!(l<(r=c.lastIndex)&&(k(a,L(s,l,o.index)),1>>0;if(0==a)return[];if(0===n.length)return null===x(i,n)?[n]:[];for(var l=0,c=0,d=[];c{"use strict";var n=s("../../node_modules/core-js/internals/export.js"),o=s("../../node_modules/core-js/internals/string-trim.js").trim;n({target:"String",proto:!0,forced:s("../../node_modules/core-js/internals/string-trim-forced.js")("trim")},{trim:function(){return o(this)}})},"../../node_modules/core-js/modules/web.dom-collections.iterator.js":(e,t,s)=>{function n(t,e){if(t){if(t[d]!==h)try{c(t,d,h)}catch(e){t[d]=h}if(t[u]||c(t,u,e),i[e])for(var s in l)if(t[s]!==l[s])try{c(t,s,l[s])}catch(e){t[s]=l[s]}}}var o,r=s("../../node_modules/core-js/internals/global.js"),i=s("../../node_modules/core-js/internals/dom-iterables.js"),a=s("../../node_modules/core-js/internals/dom-token-list-prototype.js"),l=s("../../node_modules/core-js/modules/es.array.iterator.js"),c=s("../../node_modules/core-js/internals/create-non-enumerable-property.js"),s=s("../../node_modules/core-js/internals/well-known-symbol.js"),d=s("iterator"),u=s("toStringTag"),h=l.values;for(o in i)n(r[o]&&r[o].prototype,o);n(a,"DOMTokenList")},"../../node_modules/domready/ready.js":e=>{ /*! * domready (c) Dustin Diaz 2014 - License MIT */ e.exports=function(){var t=[],e,s=document,n=s.documentElement.doScroll,o="DOMContentLoaded",r=(n?/^loaded|^c/:/^loaded|^i|^c/).test(s.readyState);if(!r)s.addEventListener(o,e=function(){s.removeEventListener(o,e);r=1;while(e=t.shift())e()});return function(e){r?setTimeout(e,0):t.push(e)}}()},"../../node_modules/lodash.isempty/index.js":(e,t,s)=>{e=s.nmd(e);var n=9007199254740991,o="[object Arguments]",r="[object Function]",i="[object GeneratorFunction]",a="[object Map]",l="[object Promise]",c="[object Set]",d="[object WeakMap]",u="[object DataView]",h=/^\[object .+?Constructor\]$/,s="object"==typeof global&&global&&global.Object===Object&&global,m="object"==typeof self&&self&&self.Object===Object&&self,s=s||m||Function("return this")(),m=t&&!t.nodeType&&t,t=m&&e&&!e.nodeType&&e,t=t&&t.exports===m;var p,g,m=Function.prototype,j=Object.prototype,f=s["__core-js_shared__"],_=(f=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"",b=m.toString,y=j.hasOwnProperty,w=j.toString,v=RegExp("^"+b.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),f=t?s.Buffer:void 0,x=j.propertyIsEnumerable,m=f?f.isBuffer:void 0,I=(p=Object.keys,g=Object,function(e){return p(g(e))}),t=k(s,"DataView"),f=k(s,"Map"),S=k(s,"Promise"),C=k(s,"Set"),s=k(s,"WeakMap"),P=!x.call({valueOf:1},"valueOf"),E=A(t),O=A(f),D=A(S),W=A(C),N=A(s);function q(e){var t;if(M(e)&&(t=e,!(_&&_ in t)))return(R(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?v:h).test(A(e))}function k(e,t){t=t;e=null==(e=e)?void 0:e[t];return q(e)?e:void 0}var L=function(e){return w.call(e)};function A(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function U(e){return function(e){return e&&"object"==typeof e}(t=e)&&T(t)&&y.call(e,"callee")&&(!x.call(e,"callee")||w.call(e)==o);var t}(t&&L(new t(new ArrayBuffer(1)))!=u||f&&L(new f)!=a||S&&L(S.resolve())!=l||C&&L(new C)!=c||s&&L(new s)!=d)&&(L=function(e){var t=w.call(e),e="[object Object]"==t?e.constructor:void 0,e=e?A(e):void 0;if(e)switch(e){case E:return u;case O:return a;case D:return l;case W:return c;case N:return d}return t});var B=Array.isArray;function T(e){return null!=e&&("number"==typeof(t=e.length)&&-1{"use strict";e.exports=function(e,t,s,n){t=t||"&",s=s||"=";var o={};if("string"==typeof e&&0!==e.length){var r=/\+/g,t=(e=e.split(t),1e3),i=(n&&"number"==typeof n.maxKeys&&(t=n.maxKeys),e.length);0{"use strict";function r(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}e.exports=function(s,n,o,e){return n=n||"&",o=o||"=","object"==typeof(s=null===s?void 0:s)?Object.keys(s).map(function(e){var t=encodeURIComponent(r(e))+o;return Array.isArray(s[e])?s[e].map(function(e){return t+encodeURIComponent(r(e))}).join(n):t+encodeURIComponent(r(s[e]))}).join(n):e?encodeURIComponent(r(e))+o+encodeURIComponent(r(s)):""}},"../../node_modules/querystring/index.js":(e,t,s)=>{"use strict";t.decode=t.parse=s("../../node_modules/querystring/decode.js"),t.encode=t.stringify=s("../../node_modules/querystring/encode.js")},"../../node_modules/url/node_modules/punycode/punycode.js":function(e,t,s){var n,j,f,_,o,r,i,a,l,c,d,b,y;/*! https://mths.be/punycode v1.3.2 by @mathias */function w(e){throw RangeError(c[e])}function u(e,t){for(var s=e.length,n=[];s--;)n[s]=t(e[s]);return n}function h(e,t){var s=e.split("@"),n="",s=(1>>10&1023|55296),e=56320|1023&e),t+=y(e)}).join("")}function x(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function I(e,t,s){var n=0;for(e=s?b(e/r):e>>1,e+=b(e/t);d*_>>1b((j-d)/r))&&w("overflow"),d+=a*r,!(a<(a=i<=h?1:h+_<=i?_:i-h));i+=f)r>b(j/(a=f-a))&&w("overflow"),r*=a;h=I(d-o,t=l.length+1,0==o),b(d/t)>j-u&&w("overflow"),u+=b(d/t),d%=t,l.splice(d++,0,u)}return p(l)}function g(e){for(var t,s,n,o,r,i,a,l,c,d,u=[],h=(e=v(e)).length,m=128,p=72,g=t=0;gb((j-t)/(l=s+1))&&w("overflow"),t+=(o-m)*l,m=o,g=0;gj&&w("overflow"),a==m){for(r=t,i=f;!(r<(c=i<=p?1:p+_<=i?_:i-p));i+=f)u.push(y(x(c+(d=r-c)%(c=f-c),0))),r=b(d/c);u.push(y(x(r,0))),p=I(t,l,s==n),t=0,++s}++t,++m}return u.join("")}e=s.nmd(e),t&&t.nodeType,e&&e.nodeType,j=2147483647,_=26,o=38,r=700,i=/^xn--/,a=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=(f=36)-1,b=Math.floor,y=String.fromCharCode,n={version:"1.3.2",ucs2:{decode:v,encode:p},decode:m,encode:g,toASCII:function(e){return h(e,function(e){return a.test(e)?"xn--"+g(e):e})},toUnicode:function(e){return h(e,function(e){return i.test(e)?m(e.slice(4).toLowerCase()):e})}},void 0!==(s=function(){return n}.call(t,s,t,e))&&(e.exports=s)},"../../node_modules/url/url.js":(e,t,s)=>{var I=s("../../node_modules/url/node_modules/punycode/punycode.js");function h(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=o,t.resolve=function(e,t){return o(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?o(e,!1,!0).resolveObject(t):t},t.format=function(e){M(e)&&(e=o(e));return e instanceof h?e.format():h.prototype.format.call(e)},t.Url=h;var S=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,t=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),C=["'"].concat(t),P=["%","/","?",";","#"].concat(C),E=["/","?","#"],O=/^[a-z0-9A-Z_-]{0,63}$/,k=/^([a-z0-9A-Z_-]{0,63})(.*)$/,L={javascript:!0,"javascript:":!0},A={javascript:!0,"javascript:":!0},T={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},R=s("../../node_modules/querystring/index.js");function o(e,t,s){if(e&&i(e)&&e instanceof h)return e;var n=new h;return n.parse(e,t,s),n}function M(e){return"string"==typeof e}function i(e){return"object"==typeof e&&null!==e}function m(e){return null===e}h.prototype.parse=function(e,t,s){if(!M(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n,o=(o=e).trim(),e=S.exec(o);if(e&&(n=(e=e[0]).toLowerCase(),this.protocol=n,o=o.substr(e.length)),!(s||e||o.match(/^\/\/[^@\/]+@[^@\/]+/))||!(x="//"===o.substr(0,2))||e&&A[e]||(o=o.substr(2),this.slashes=!0),!A[e]&&(x||e&&!T[e])){for(var r=-1,i=0;i{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};(()=>{"use strict";o.r(r),o.d(r,{TrendMD:()=>s,config:()=>t});var e=o("./src/app/InstanceManager.js");const t={tag:"trendmd",apiUrl:{sponsored:"https://www.trendmd.com",nonSponsored:"https://cc.trendmd.co",external:""},relevancyUrl:"https://academia.trendmd.com",swoopScriptUrl:"https://ardrone.swoop.com/js/spxw.js",swoopPassthroughScriptUrl:"https://www.swoop-amp.com/ss/SW-84784695.js",styleSheetUrl:"https://css.trendmd.com/trendmd.min.css",dtConfig:{liveRamp:{api:"https://api.rlcdn.com/api/identity/idl"},dmd:{origin:"https://www.medtargetsystem.com",path:"/beacon/portal-lite"},lhk:{api:"https://flowtype.press"}},version:"3.140.0",infiniteScrollWebsiteIds:[69735]},s=e.default;e=new s(t);(window.global=window).global.TrendMD=e,window.TrendMD=e,window.TrendMDGTM=e})()})();